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)); }
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(); }