Esempio n. 1
0
 public JsonResult EditBank(Bank bank)
 {
     if (bank != null)
     {
         bankService.Update(bank);
         return Json(true);
     }
     return Json(false);
 }
Esempio n. 2
0
 public JsonResult AddBank(Bank bank)
 {
     if (bank != null)
     {
         bank.Id = Guid.NewGuid();
         bankService.Add(bank);
         return Json(true);
     }
     return Json(false);
 }
Esempio n. 3
0
 public JsonResult DeleteBank(Bank bank)
 {
     try
     {
         if (bank != null)
         {
             bankService.Remove(bank.Id);
             return Json(true);
         }
         return Json(false);
     }
     catch (Exception ex)
     {
         return Json(false);
     }
 }
Esempio n. 4
0
 public Bank Update(Bank bank)
 {
     bankRepository.Update(bank);
     return bank;
 }
Esempio n. 5
0
 public Bank Add(Bank bank)
 {
     bankRepository.Add(bank);
     return bank;
 }