how to persist partial view model data during postback in asp.net mvc
问题 I am having partial view Department containing department information. I have Page view of Employee. in Employee view i am using partial view of department to show employees department. My employee model is as below class Employee { public string EmployeeName{get;set}; public Department EmployeeName{get;set}; } class Department { public string DepartmentName{get;set}; } I have submit button on employee page view. When i submit the employee view I am getting Department object as null. Could