public ActionResult Edit(EditSolicitorbyTipstaffRecordViewModel model) { if (ModelState.IsValid) { db.Entry(model.Solicitor).State = EntityState.Modified; db.SaveChanges(); string controller = genericFunctions.TypeOfTipstaffRecord(model.TipstaffRecord); return(RedirectToAction("Details", "Solicitor", new { solicitorID = model.solicitorID, tipstaffRecordID = model.tipstaffRecordID })); } return(View(model)); }
public ActionResult Edit(int solicitorID, int tipstaffRecordID) { EditSolicitorbyTipstaffRecordViewModel model = new EditSolicitorbyTipstaffRecordViewModel(solicitorID, tipstaffRecordID); return(View(model)); }