public List <StudentModelDto> GetAllStudent(StudentSearchInput input) { var studentInput = ObjectMapper.Map <Student>(input); var student = _studentManager.GetAllStudent(studentInput); return(ObjectMapper.Map <List <StudentModelDto> >(student)); }
public ActionResult GetStudentList(StudentSearchInput input) { var list = _studentAppService.GetAllStudent(input); return(Content(list.ToJson())); }