/// <summary> /// 根据登录名取学院 /// </summary> /// <param name="loginName"></param> /// <returns></returns> public IEnumerable <SchoolView> GetSchoolByloginName(string loginName) { //系统用户 var user = new TbmisUserAppl(loginName).GetUser(); //取当前登录用户的学院 var schoolAppl = new SchoolAppl(); var school = schoolAppl.GetSchoolOfUser(loginName); return(_adapter.Adapt <SchoolView>(school)); }
/// <summary> /// 根据登录名取学院 /// </summary> /// <param name="loginName"></param> /// <returns></returns> public IEnumerable<SchoolView> GetSchoolByloginName(string loginName) { //系统用户 var user = new TbmisUserAppl(loginName).GetUser(); //取当前登录用户的学院 var schoolAppl = new SchoolAppl(); var school = schoolAppl.GetSchoolOfUser(loginName); return _adapter.Adapt<SchoolView>(school); }