Exemple #1
0
        public async Task DeleteTenantAsync(Guid tenantId, Guid userId, CancellationToken cancellationToken = default)
        {
            var tenantUser = new TenantUser
            {
                TenantId = tenantId,
                UserId   = userId
            };

            toolShedContext.Remove(tenantUser);
            await toolShedContext.SaveChangesAsync(cancellationToken);
        }
 public async Task DeleteAsync(ItemType itemType, CancellationToken cancellationToken = default)
 {
     toolShedContext.Remove(itemType);
     await toolShedContext.SaveChangesAsync(cancellationToken);
 }