public ActionResult Create(UserQuotation userquotation) { if (ModelState.IsValid) { db.UserQuotations.Add(userquotation); db.SaveChanges(); return RedirectToAction("Index"); } return View(userquotation); }
public ActionResult Edit(UserQuotation userquotation) { if (ModelState.IsValid) { db.Entry(userquotation).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(userquotation); }