C# Class FRS.Implementation.Services.MenuRightsService

Menu Rights Service
Inheritance: IMenuRightsService
Exibir arquivo Open project: innoist/GF-FRS

Public Methods

Method Description
FindMenuItemsByRoleId ( string roleId ) : IQueryable

Find Menu Items by Role ID

GetRoleMenuRights ( string roleId ) : UserMenuResponse

Get Menu Rights For Role

MenuRightsService ( IMenuRightRepository menuRightRepository, IMenuRepository menuRepository ) : System

Constructor

SaveRoleMenuRight ( string roleId, string menuIds, UserRole role ) : UserMenuResponse

Save Menu Rights

Method Details

FindMenuItemsByRoleId() public method

Find Menu Items by Role ID
public FindMenuItemsByRoleId ( string roleId ) : IQueryable
roleId string
return IQueryable

GetRoleMenuRights() public method

Get Menu Rights For Role
public GetRoleMenuRights ( string roleId ) : UserMenuResponse
roleId string
return FRS.Models.MenuModels.UserMenuResponse

MenuRightsService() public method

Constructor
public MenuRightsService ( IMenuRightRepository menuRightRepository, IMenuRepository menuRepository ) : System
menuRightRepository IMenuRightRepository
menuRepository IMenuRepository
return System

SaveRoleMenuRight() public method

Save Menu Rights
public SaveRoleMenuRight ( string roleId, string menuIds, UserRole role ) : UserMenuResponse
roleId string
menuIds string
role FRS.Models.IdentityModels.UserRole
return FRS.Models.MenuModels.UserMenuResponse