C# Class MvcTemplate.Services.RoleService

Inheritance: BaseService, IRoleService
Afficher le fichier Open project: NonFactors/MVC5.Template Class Usage Examples

Méthodes publiques

Méthode Description
Create ( RoleView view ) : void
Delete ( Int32 id ) : void
Edit ( RoleView view ) : void
GetView ( Int32 id ) : RoleView
GetViews ( ) : IQueryable
RoleService ( IUnitOfWork unitOfWork ) : MvcTemplate.Components.Extensions.Html
SeedPermissions ( RoleView view ) : void

Private Methods

Méthode Description
DeleteRole ( Int32 id ) : void
DeleteRolePermissions ( Int32 roleId ) : void
EditRole ( Role role, RoleView view ) : void
EditRolePermissions ( Role role, RoleView view ) : void
GetAllPermissions ( ) : IEnumerable
RemoveRoleFromAccounts ( Int32 roleId ) : void

Method Details

Create() public méthode

public Create ( RoleView view ) : void
view MvcTemplate.Objects.RoleView
Résultat void

Delete() public méthode

public Delete ( Int32 id ) : void
id System.Int32
Résultat void

Edit() public méthode

public Edit ( RoleView view ) : void
view MvcTemplate.Objects.RoleView
Résultat void

GetView() public méthode

public GetView ( Int32 id ) : RoleView
id System.Int32
Résultat MvcTemplate.Objects.RoleView

GetViews() public méthode

public GetViews ( ) : IQueryable
Résultat IQueryable

RoleService() public méthode

public RoleService ( IUnitOfWork unitOfWork ) : MvcTemplate.Components.Extensions.Html
unitOfWork IUnitOfWork
Résultat MvcTemplate.Components.Extensions.Html

SeedPermissions() public méthode

public SeedPermissions ( RoleView view ) : void
view MvcTemplate.Objects.RoleView
Résultat void