public Task AddCustomer(Domain.Customer dCust) { var customer = mapper.MapToEntity(dCust); context.Customers.Add(customer); return(context.SaveChangesAsync()); }
public Task Add(Domain.Company dComp) { var company = mapper.MapToEntity(dComp); store.Companies.Add(company); return(store.SaveChangesAsync()); }