public ActionResult DeleteConfirmed(int id) { EstimateForm estimateform = db.EstimateForm.Find(id); db.EstimateForm.Remove(estimateform); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(EstimateForm estimateform) { if (ModelState.IsValid) { db.Entry(estimateform).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(estimateform)); }
public ActionResult Create(EstimateForm estimateform) { if (ModelState.IsValid) { db.EstimateForm.Add(estimateform); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(estimateform)); }
// // GET: /Administration/Estimates/Delete/5 public ActionResult Delete(int id) { EstimateForm estimateform = db.EstimateForm.Find(id); return(View(estimateform)); }
public ViewResult Details(int id) { EstimateForm estimateform = db.EstimateForm.Find(id); return(View(estimateform)); }