public ActionResult DeleteConfirmed(int id) { WORKERTIMETOTAL workertimetotal = db.WORKERTIMETOTALs.Find(id); db.WORKERTIMETOTALs.Remove(workertimetotal); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /WORKERTIMETOTALs/Delete/5 public ActionResult Delete(int id = 0) { WORKERTIMETOTAL workertimetotal = db.WORKERTIMETOTALs.Find(id); if (workertimetotal == null) { return(HttpNotFound()); } return(View(workertimetotal)); }
public ActionResult Edit(WORKERTIMETOTAL workertimetotal) { if (ModelState.IsValid) { db.Entry(workertimetotal).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(workertimetotal)); }
public ActionResult Create(WORKERTIMETOTAL workertimetotal) { if (ModelState.IsValid) { db.WORKERTIMETOTALs.Add(workertimetotal); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(workertimetotal)); }