Пример #1
0
 public ActionResult Attendance(int id)
 {
     try
     {
         var m = new AttendanceModel(id);
         UpdateModel(m);
         return View(m);
     }
     catch (Exception ex)
     {
         return Content(ex.Message);
     }
 }
Пример #2
0
 public ActionResult Attendance(AttendanceModel m)
 {
     return View(m);
 }
Пример #3
0
 public ActionResult Attendance(int id, AttendanceModel m)
 {
     if(m.OrgId == 0)
         m = new AttendanceModel() { OrgId = id };
     return View(m);
 }