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()); }
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(); }