コード例 #1
0
        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();
        }
コード例 #2
0
 public void Post(UpdateCustomerInfoApiModel.Request updatedCustomer)
 {
     _adminInterface.UpdateCustomerDetailes(updatedCustomer);
 }