Exemplo n.º 1
0
 public ActionResult BankGridViewPartialDelete(System.String Code)
 {
     //var model = new object[0];
     if (Code != null)
     {
         try
         {
             BankModelList.DeleteItem(Code);
         }
         catch (Exception e)
         {
             ViewData["EditError"] = e.Message;
         }
     }
     return(PartialView("_BankGridViewPartial", BankModelList.GetData()));
 }
Exemplo n.º 2
0
 public ActionResult BankGridViewPartialUpdate(APIBank item)
 {
     //var model = new object[0];
     if (ModelState.IsValid)
     {
         try
         {
             BankModelList.UpdateItem(item);
         }
         catch (Exception e)
         {
             ViewData["EditError"] = e.Message;
         }
     }
     else
     {
         ViewData["EditError"] = "Please, correct all errors.";
     }
     return(PartialView("_BankGridViewPartial", BankModelList.GetData()));
 }
Exemplo n.º 3
0
 public ActionResult BankGridViewPartial()
 {
     //var model = new object[0];
     return(PartialView("_BankGridViewPartial", BankModelList.GetData()));
 }