public ActionResult OutputVATInvoiceConfigGridViewPartialDelete(System.Int32 ID) { var model = OutputVATInvoiceConfigList.GetData(); if (ID >= 0) { try { OutputVATInvoiceConfigList.DeleteItem(ID); } catch (Exception e) { ViewData["EditError"] = e.Message; } } return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model)); }
public ActionResult OutputVATInvoiceConfigGridViewPartialUpdate(MVC.Areas.Accounting.Models.Configuration.APIOutputVATInvoiceConfig item) { var model = OutputVATInvoiceConfigList.GetData(); if (ModelState.IsValid) { try { OutputVATInvoiceConfigList.UpdateItem(item); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model)); }
public ActionResult OutputVATInvoiceConfigGridViewPartial() { var model = OutputVATInvoiceConfigList.GetData(); return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model)); }