having an issue in asp.net mvc, browser is displaying complete model as part of query string.
I have first method which gives list of employees
[HttpGet]
public ActionResult GetEmployees()
{
model.employees = GetEmployeeList()
return View(model);
}
[HttpPost]
public ActionResult DisplayEmployee(Guid id)
{
model.emp=GetEmployeeDetails(id);
return View("GetEmployees",model);
}
I am getting the complete query string as following
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