I have this following model, every time i am trying to run my controller its complain about the data type being non-null value be set to System.Int32. How do i solve this issue? this data type is set as float type.
- public ActionResult SearchPeopleDetails()
- {
-
- RegCoursesViewModel regCoursesView = new RegCoursesViewModel();
- return View(cb.RegPeopleLists.ToList()); // Exception is here by run time.
- }
-
- public class eNtsaRegPeopleLists
- {
- public string Name { get; set; }
- [Key]
- public int LoginID { get; set; }
- public string SISID { get; set; }
- public string Role { get; set; }
- public DateTime LastActivity { get; set; }
- public int? TotalActivity { get; set; }