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