public ActionResult DeleteInline(WithholdingModel model) { if (ModelState.IsValid) { try { WithholdingHelper.Delete(model.Id.ToString()); return(PartialView("_List", WithholdingHelper.GetWithholdings(model.SOBId, model.CodeCombinitionId, model.VendorId))); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_List", WithholdingHelper.GetWithholdings(model.SOBId, model.CodeCombinitionId, model.VendorId))); }
public ActionResult AddNewInline(WithholdingModel model) { if (ModelState.IsValid) { try { model.VendorId = SessionHelper.VendorId; model.SOBId = SessionHelper.SOBId; model.CodeCombinitionId = SessionHelper.CodeCombinitionId; WithholdingHelper.Save(model); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_List", WithholdingHelper.GetWithholdings(model.SOBId, model.CodeCombinitionId, model.VendorId))); }
public ActionResult GetWithholdings(long codeCombinitionId, long vendorId) { SessionHelper.CodeCombinitionId = codeCombinitionId; SessionHelper.VendorId = vendorId; return(PartialView("_List", WithholdingHelper.GetWithholdings(SessionHelper.SOBId, codeCombinitionId, vendorId))); }
public ActionResult CreatePartial() { return(PartialView("_List", WithholdingHelper.GetWithholdings(SessionHelper.SOBId, SessionHelper.CodeCombinitionId, SessionHelper.VendorId))); }