public ActionResult UpdatePartial(PayableInvoiceDetailModel model) { if (ModelState.IsValid) { try { PayableInvoiceHelper.UpdateInvoiceDetail(model); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_Detail", PayableInvoiceHelper.GetInvoiceDetail())); }