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