public ActionResult Edit(ImpExpAssociated impexpassociated) { if (ModelState.IsValid) { db.Entry(impexpassociated).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index", new { id = impexpassociated.PmsId })); } return(View(impexpassociated)); }
public ActionResult Edit(Pms pms) { if (ModelState.IsValid) { db.Entry(pms).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pms)); }