public void UpdateAccount(AccountDTO account) { var acc = accountRepository.GetBy(account.ID); account.MappingAccount(acc); accountRepository.Update(acc); }
public void AddAccount(AccountDTO account) { var acc = account.MappingAccount(); accountRepository.Add(acc); }