public async Task <List <CustomerPermissionModel> > InsertAllInitialPermissionsInCustomerAsync(int customerId) { List <PermissionModel> permissions = await _permissionBusiness.GetPermissionsOnCreateCustomerAsync(); var customerPermissions = new List <CustomerPermissionModel>(); foreach (var permission in permissions) { var customerPermission = new CustomerPermissionModel() { CustomerId = customerId, PermissionId = permission.Id, Permissions = permission.Permissions, }; customerPermissions.Add(await InsertAsync(customerPermission)); } return(customerPermissions); }