Nucleus .Net Core CMS

Managers.IRoleGroupManager Interface

Namespace: Nucleus.Abstractions.Managers
Assembly: Nucleus.Abstractions.dll
Provides functions to manage database data for Models.RoleGroups.

Remarks

Get an instance of this class from dependency injection by including a parameter in your class constructor.

Methods

CreateNew

CreateNew ()
Create a new Models.RoleGroup with default values.
Remarks
This function does not save the new Models.RoleGroup to the database. Call Save to save the role group.

Get (Guid) Method

Get (Guid id)
Retrieve an existing Models.RoleGroup from the database.
Parameters
Name Type
id Guid

GetByName (Site,String) Method

GetByName (Site site, String name)
Retrieve an existing Models.RoleGroup from the database.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site
name String

List (Site) Method

List (Site site)
List all Models.RoleGroups for the specified site.
Parameters
Name Type
site Nucleus.Abstractions.Models.Site

List (Site,PagingSettings) Method

List (Site site, PagingSettings pagingSettings)
List paged Models.RoleGroups for the specified site.

Save (Site,RoleGroup) Method

Save (Site site, RoleGroup roleGroup)
Create or update the specified Models.RoleGroup.

Delete (RoleGroup) Method

Delete (RoleGroup roleGroup)
Delete the specified Models.RoleGroup from the database.
Parameters
Name Type
roleGroup Nucleus.Abstractions.Models.RoleGroup