Beispiel #1
0
        public async Task <DTO.Account> Save(DTO.Account account)
        {
            account.Valid();
            var entity = new DO.Account(account);

            accountService.Save(entity);

            return(new DTO.Account(entity));
        }
Beispiel #2
0
 public Account(DO.Account account)
 {
     this.Id              = account.Id;
     this.Name            = account.Name;
     this.Email           = account.Email;
     this.Login           = account.Login;
     this.Document        = account.Document;
     this.Phone           = account.Phone;
     this.Type            = account.Type;
     this.TypeDescription = account.Type.GetDescription();
 }