Пример #1
0
 public bool UpdateAccount(int accountId, DomainAccount account)
 {
     if (account != null)
     {
         _repository.Accounts.UpdateAccount(accountId, account.ToInfrastructure());
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 public DomainAccount CreateAccount(DomainAccount account)
 {
     _repository.Accounts.CreateAccount(account?.ToInfrastructure());
     return(account);
 }