public ActionResult AddBank(AddBankDetails model)
 {
     if (!ModelState.IsValid || _bankService.BankExist(model.BranchId, model.Name) ||
         _bankService.BankCodeExist(model.BranchId, model.Code ?? 0)) return View(model);
     _bankService.AddBank(model.BranchId, new BankBO
     {
         Name = model.Name,
         Code = model.Code ?? 0
     });
     return RedirectToAction("BanksList", new { branchId = model.BranchId });
 }