public ActionResult DeleteInline(PayablePeriodModel model) { if (ModelState.IsValid) { try { PayablePeriodHelper.Delete(model.Id.ToString()); return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId))); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId))); }
public ActionResult GetPayablePeriods() { return(PartialView("_List", PayablePeriodHelper.GetPayablePeriods(SessionHelper.SOBId))); }