示例#1
0
 /// <summary>
 /// 根据用户Id获取角色
 /// </summary>
 /// <param name="pager"></param>
 /// <param name="moduleId"></param>
 /// <returns></returns>
 public List <P_Sys_GetRoleListByUserId_Result> GetRoleListByUserId(int userId)
 {
     using (DBContainer db = new DBContainer())
     {
         return(db.P_Sys_GetRoleListByUserId(userId).ToList());
     }
 }