public List <StudentModelDto> GetAllStudent(StudentSearchInput input)
        {
            var studentInput = ObjectMapper.Map <Student>(input);
            var student      = _studentManager.GetAllStudent(studentInput);

            return(ObjectMapper.Map <List <StudentModelDto> >(student));
        }
示例#2
0
        public ActionResult GetStudentList(StudentSearchInput input)
        {
            var list = _studentAppService.GetAllStudent(input);

            return(Content(list.ToJson()));
        }