Beispiel #1
0
 public ActionResult Create(Shift shift)
 {
     try
     {
         //TryUpdateModel<Shift>(shift);
         IShiftService service = new ShiftService();;
         service.CreateNew(shift);
         return(RedirectToAction("ShiftIndex"));
     }
     catch (Exception e)
     {
         return(View());
     }
 }