public static AccountOwner ToAccountOwner(this AccountOwnerDto accountOwnerDto) => new AccountOwner() { Email = accountOwnerDto.Email, FirstName = accountOwnerDto.FirstName, LastName = accountOwnerDto.LastName };
public static AccountOwner ToOrmOwner(this AccountOwnerDto accountOwnerDto) { return(new AccountOwner { Id = accountOwnerDto.Id, FirstName = accountOwnerDto.FirstName, LastName = accountOwnerDto.LastName }); }
public void Update(AccountOwnerDto accountOwnerDto) { }
public void Create(AccountOwnerDto accountOwnerDto) { context.Set <AccountOwner>() .Add(accountOwnerDto.ToOrmOwner()); }