Ejemplo n.º 1
0
        public async Task AddCustomerAsync(User user, CustomerInfo customerInfo)
        {
            await context.AddAsync(user);

            await context.SaveChangesAsync();

            customerInfo.Id = user.Id;
            await context.CustomerInfo.AddAsync(customerInfo);

            await context.SaveChangesAsync();
        }