Skip to main content
Namespace: Numa.Services
Related Models: Group.cs
Related Interfaces: IGroupService.cs

Fields

Field NameTypeDescription
_dbContextFactoryIDbContextFactory<NumaContext>DbContextFactory for instantiating instances of NumaContext on-demand

Constructor

public GroupService( IDbContextFactory<NumaContext> dbContextFactory )
{
    _dbContextFactory = dbContextFactory ?? throw new ArgumentNullException( nameof( dbContextFactory ) );
}

Properties

GroupService does not have any properties.

Methods

Method NameDescriptionParametersReturn Type
UserIsInGroupChecks if a specific user is in a specific groupstring,stringTask<bool>

IGroupService.cs

namespace Numa.Interfaces
{
    public interface IGroupService
    {
        Task<bool> UserIsInGroup( string userId, string groupId );
    }
}