在 asp.net mvc 中存在问题,浏览器将完整模型显示为查询字符串的一部分。
我有第一种方法可以列出员工名单
[HttpGet]
public ActionResult GetEmployees()
{
model.employees = GetEmployeeList()
return View(model);
}
[HttpPost]
public ActionResult DisplayEmployee(Guid id)
{
model.emp=GetEmployeeDetails(id);
return View("GetEmployees",model);
}
我得到完整的查询字符串如下
StakeWorking=ColloSys.DataLayer.Domain.StkhWorking&StkHolder=ColloSys.DataLayer.Domain.Stakeholders&StkhPaymentP=ColloSys.DataLayer.Domain.StkhPayment&StakeAddress=ColloSys.DataLayer.Domain.GAddress&StakeAddressDetails=ColloSys.UserInterface.Models.StakeAddressDetails&StkhWorkingDetails=ColloSys.UserInterface.Models.StakeWorkingDetails&ListOfRegion=System.Collections.Generic.List%601%5BSystem.String%5D&ListOfProduct=System.Collections.Generic.List%601%5BSystem.String%5D