Beispiel #1
0
 public ActionResult Create(ShiftModel shift)
 {
     if (ModelState.IsValid)
     {
         WFMDBDataContext db = new WFMDBDataContext();
         db.uspWFMInsertShift(shift.ShiftName, this.TenantID, shift.StartTime, shift.EndTime, this.TenantSpecialFlag);
         return(RedirectToAction("Index"));
     }
     return(View());
 }
Beispiel #2
0
 public ActionResult Create(ShiftModel shift)
 {
     if (ModelState.IsValid)
     {
         WFMDBDataContext db = new WFMDBDataContext();
         db.uspWFMInsertShift(shift.ShiftName, this.TenantID, shift.StartTime, shift.EndTime, this.TenantSpecialFlag);
         return RedirectToAction("Index");
     }
     return View();
 }