Hi,
My View
@Html.ListBoxFor(model => model.PositionId, new MultiSelectList(Model.GetPostions, "PositionId", "PositionName",Model.PositionId))
@Html.ValidationMessageFor(model => model.PositionId)
My Controller
[HttpPost]
public ActionResult AddEmployee(EmployeeViewModel employeeViewModel)
{
//_employeeService.Insert(employeeViewModel);
return RedirectToAction("View", "Employee");
}
Now when I see PositionId in employeeViewModel,its Null..Please can I know anything wrong I made.