public static AccountOwner FromDTO(this AccountOwnerDTO dto)
 {
     return(new AccountOwner()
     {
         Email = dto.Email, FullName = dto.FullName, PassportID = dto.PassportID
     });
 }
 public IEnumerable <BankAccountDTO> GetByOwner(AccountOwnerDTO owner)
 {
     throw new NotImplementedException();
 }
 public IEnumerable <BankAccountDTO> GetByOwner(AccountOwnerDTO owner)
 {
     return(context.AccountOwnerSet.Find(owner.PassportID)?.BankAccounts.Select(a => a.ToDTO()));
 }
예제 #4
0
 public static AccountOwner FromDTO(this AccountOwnerDTO dto)
 {
     return(new AccountOwner(dto.PassportID, dto.FullName, dto.Email));
 }