Ejemplo n.º 1
0
 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()));
 }
Ejemplo n.º 2
0
 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()));
 }
Ejemplo n.º 3
0
 public ActionResult OutputVATInvoiceGridViewPartial()
 {
     //var model = new object[0];
     return(PartialView("_OutputVATInvoiceGridViewPartial", OutputVATInvoiceModelList.OutputVATInvoiceModels()));
 }