public JsonResult EditBank(Bank bank) { if (bank != null) { bankService.Update(bank); return Json(true); } return Json(false); }
public JsonResult AddBank(Bank bank) { if (bank != null) { bank.Id = Guid.NewGuid(); bankService.Add(bank); return Json(true); } return Json(false); }
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); } }
public Bank Update(Bank bank) { bankRepository.Update(bank); return bank; }
public Bank Add(Bank bank) { bankRepository.Add(bank); return bank; }