public ActionResult Create(ContactUsSubmissionModel contactussubmissionmodel) { if (ModelState.IsValid) { db.cuSub.Add(contactussubmissionmodel); db.SaveChanges(); return RedirectToAction("Index", "Home"); } return View(contactussubmissionmodel); }
public ActionResult Edit(ContactUsSubmissionModel contactussubmissionmodel) { if (ModelState.IsValid) { db.Entry(contactussubmissionmodel).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(contactussubmissionmodel); }