Beispiel #1
0
        public IActionResult GetStudentList()
        {
            var studentListQuery = new StudentListQuery();
            var response         = _queryProccessor.Execute(studentListQuery);

            return(Ok(response));
        }
        public IEnumerable <Student> ReadStudent(StudentListQuery query)
        {
            StudentsQueryHandler handler = new StudentsQueryHandler();

            return(handler.Handle(query));
        }
Beispiel #3
0
 public Task <PagedListResponse <UserRoleListResponse> > ListStudents([FromQuery] StudentListQuery query,
                                                                      CancellationToken cancellationToken)
 {
     return(mediator.Send(query, cancellationToken));
 }