示例#1
0
 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()));
 }
示例#2
0
 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()));
 }
示例#3
0
 public ActionResult InputVATInvoiceGridViewPartial()
 {
     //var model = new object[0];
     return(PartialView("_InputVATInvoiceGridViewPartial", InputVATInvoiceModelList.InputVATInvoiceModels()));
 }