public async Task UpdateCustomerDetailes(UpdateCustomerInfoApiModel.Request updatedCustomer) { Customer customer = new Customer { Id = new Guid(updatedCustomer.Id), EmailConfirmed = updatedCustomer.EmailConfiremd, Email = updatedCustomer.Email, PhoneNumber = updatedCustomer.PhoneNumber, UserName = updatedCustomer.UserName }; applicationDbContext.customers.Update(customer); await applicationDbContext.SaveChangesAsync(); }
public void Post(UpdateCustomerInfoApiModel.Request updatedCustomer) { _adminInterface.UpdateCustomerDetailes(updatedCustomer); }