public ActionResult OutputVATInvoiceGridViewPartialDelete(System.Int32 Id) { //var model = new object[0]; if (Id >= 0) { try { OutputVATInvoiceModelList.DeleteItem(Id); } catch (Exception e) { ViewData["EditError"] = e.Message; } } return(PartialView("_OutputVATInvoiceGridViewPartial", OutputVATInvoiceModelList.OutputVATInvoiceModels())); }
public ActionResult OutputVATInvoiceGridViewPartialUpdate(APIOutputVATInvoice item) { //var model = new object[0]; if (ModelState.IsValid) { try { OutputVATInvoiceModelList.UpdateItem(item); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_OutputVATInvoiceGridViewPartial", OutputVATInvoiceModelList.OutputVATInvoiceModels())); }
public ActionResult OutputVATInvoiceGridViewPartial() { //var model = new object[0]; return(PartialView("_OutputVATInvoiceGridViewPartial", OutputVATInvoiceModelList.OutputVATInvoiceModels())); }