예제 #1
0
 public ActionResult Edit(ShiftTimeView model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             if (_shiftBusiness.Edit(model))
             {
                 _shiftBusiness.Save();
                 return(Redirect("/ShiftTime/List"));
             }
         }
         return(View(model));
     }
     catch (Exception)
     {
         return(View(model));
     }
 }
예제 #2
0
 public bool Edit(ShiftTimeView model)
 {
     return(_shift.Edit(model));
 }
예제 #3
0
 public bool Add(ShiftTimeView model)
 {
     return(_shift.Add(model));
 }