public void CreateBankAccount(BankAccount bankAccount) { using (var db = new Database(_settings)) { db.Insert(bankAccount); } }
public void UpdateBankAccount(BankAccount bankAccount) { _userRepository.UpdateBankAccount(bankAccount); }
public void CreateBankAccount(BankAccount bankAccount) { bankAccount.UserId = UserIdentity.Current.User.Id; _userRepository.CreateBankAccount(bankAccount); }
public void UpdateBankAccount(BankAccount bankAccount) { using (var db = new Database(_settings)) { db.Update<BankAccount>("set Name = @1, Number = @2 where Id = @0", bankAccount.Id, bankAccount.Name, bankAccount.Number); } }