public ActionResult CreateCompanyLinkType(CompanyLinkType type) { if (ModelState.IsValid) { db.CompanyLinkType.Add(type); db.SaveChanges(); return RedirectToAction("CompanyLinkType"); } return View(type); }
public ActionResult EditCompanyLinkType(CompanyLinkType type) { if (ModelState.IsValid) { db.Entry(type).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("CompanyLinkType"); } return View(type); }