示例#1
0
 public static Dictionary <int, string> GetCurrentRole()
 {
     using (var roleDB = new EMS.BL.Account.Role())
     {
         return(roleDB.GetUserRoleMsg(GetCurrentUserID()));
     }
 }
示例#2
0
 public static int GetCurrentUserRoleId(string userName)
 {
     using (var roleDB = new EMS.BL.Account.Role())
     {
         return(roleDB.GetRoleId(userName));
     }
 }