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