static void AddBank(string name, string bic) { Bank bank = new Bank(name, bic); BankRepository bankRepository = new BankRepository(); bankRepository.AddBank(bank); }
public long AddBank(BankObject bankAccount) { try { return(_bankAccountRepository.AddBank(bankAccount)); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(0); } }
public ActionResult CreateBank(BankModel bank) { ValidateBank(bank); if (ModelState.IsValid) { _bankRepository.AddBank(bank); return(RedirectToAction("BanksList")); } else { return(View(bank)); } }
public ActionResult Create(BankBE bank) { try { if (!ModelState.IsValid) { return(View(bank)); } bankRep.AddBank(bank); return(RedirectToAction("Index")); } catch { return(View()); } }
public void AddBank(AddBankViewModel bankViewModel) { var banksModel = _bankMapper.MapAddBankToModel(bankViewModel); _bankRepository.AddBank(banksModel); }
public void AddBankDetail(Bank bank) { repository.AddBank(bank); }