Beispiel #1
0
        public ActionResult ShiftEdit(ShiftsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceShifts.Update(model.ModelToEnity(true));
            }

            return(RedirectToAction("ShiftList"));
        }
        public ActionResult ShiftInsert(ShiftsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceShifts.Insert(model.ModelToEnity(true));
            }

            return RedirectToAction("ShiftList");
        }