/// <summary> /// 根据name获取学生信息 /// </summary> /// <param name="stuName"></param> /// <returns></returns> public ApiResponse <IList <Student> > FindStudentByName(string stuName) { ApiResponse <IList <Student> > apiResponse = ApiResponse <IList <Student> > .GetInstance(); if (string.IsNullOrEmpty(stuName)) { EnumOperate.EnumItem enumItem = BaseErrorCode.REQUEST_PARAM_ERROR.GetBaseDescription(); return(apiResponse.Error(enumItem.Code, enumItem.Message)); } try { var studentList = _studentDao.FindStudentByName(stuName); apiResponse.Success(studentList); } catch (System.Exception) { throw; } return(apiResponse); }