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