public ActionResult InputVATInvoiceGridViewPartialDelete(System.Int32 Id) { //var model = new object[0]; if (Id >= 0) { try { InputVATInvoiceModelList.DeleteItem(Id); } catch (Exception e) { ViewData["EditError"] = e.Message; } } return(PartialView("_InputVATInvoiceGridViewPartial", InputVATInvoiceModelList.InputVATInvoiceModels())); }
public ActionResult InputVATInvoiceGridViewPartialUpdate(APIInputVATInvoice item) { //var model = new object[0]; if (ModelState.IsValid) { try { InputVATInvoiceModelList.UpdateItem(item); } catch (Exception e) { ViewData["EditError"] = e.Message; } } else { ViewData["EditError"] = "Please, correct all errors."; } return(PartialView("_InputVATInvoiceGridViewPartial", InputVATInvoiceModelList.InputVATInvoiceModels())); }
public ActionResult InputVATInvoiceGridViewPartial() { //var model = new object[0]; return(PartialView("_InputVATInvoiceGridViewPartial", InputVATInvoiceModelList.InputVATInvoiceModels())); }