C# Class ChiakiYu.Service.Roles.RoleService

角色Service
Inheritance: IRoleService
Exibir arquivo Open project: andyshao/ChiakiYu

Public Methods

Method Description
AddRole ( Role role ) : Role

创建角色

GetRole ( int roleId ) : Role

获取角色

GetRoles ( ) : List

获取所有角色列表

GetRoles ( GetRolesInput input ) : PagingList

获取所有角色分页列表

RoleService ( int>.IRepository roleRepository ) : System.Collections.Generic
UpdateRole ( Role role ) : Role

修改角色

Method Details

AddRole() public method

创建角色
public AddRole ( Role role ) : Role
role Role 角色实体
return Role

GetRole() public method

获取角色
public GetRole ( int roleId ) : Role
roleId int 角色Id
return Role

GetRoles() public method

获取所有角色列表
public GetRoles ( ) : List
return List

GetRoles() public method

获取所有角色分页列表
public GetRoles ( GetRolesInput input ) : PagingList
input GetRolesInput
return PagingList

RoleService() public method

public RoleService ( int>.IRepository roleRepository ) : System.Collections.Generic
roleRepository int>.IRepository
return System.Collections.Generic

UpdateRole() public method

修改角色
public UpdateRole ( Role role ) : Role
role Role 角色实体
return Role