C# Class CloudMedicApi.BLL.RoleManager

Exibir arquivo Open project: crypteron/cloudmedic

Public Methods

Method Description
GetRoleId ( RoleId roleid ) : string
GetRoleId ( string roleIdStr ) : string
GetRoleIdFromRoleName ( string roleNameStr ) : string

Given a role string (Nurse), get the string of it's id ("2")

GetRoleName ( RoleId roleId ) : string
GetRoleName ( string roleIdStr ) : string
IsRole ( IdentityUserRole userRole, RoleId roleId ) : bool

Method Details

GetRoleId() public static method

public static GetRoleId ( RoleId roleid ) : string
roleid RoleId
return string

GetRoleId() public static method

public static GetRoleId ( string roleIdStr ) : string
roleIdStr string
return string

GetRoleIdFromRoleName() public static method

Given a role string (Nurse), get the string of it's id ("2")
public static GetRoleIdFromRoleName ( string roleNameStr ) : string
roleNameStr string
return string

GetRoleName() public static method

public static GetRoleName ( RoleId roleId ) : string
roleId RoleId
return string

GetRoleName() public static method

public static GetRoleName ( string roleIdStr ) : string
roleIdStr string
return string

IsRole() public static method

public static IsRole ( IdentityUserRole userRole, RoleId roleId ) : bool
userRole IdentityUserRole
roleId RoleId
return bool