public async Task <Customer> AddAsync(Customer customer) { using var uow = new UnitOfWork(_databaseContextProvider.Create()); CustomerDto newCustomer = await uow.Customers.AddAsync(customer.ToData()); await uow.SaveChangesAsync(); return(newCustomer.ToCore()); }