public async Task <ActionResult <ReportResponse> > GetReportById(string id)
        {
            var query    = new GetReportByIdQuery(id);
            var response = await _mediator.Send(query);

            if (response == null)
            {
                return(BadRequest());
            }
            return(Ok(response));
        }
예제 #2
0
        public async Task <ActionResult <ReportDto> > GetReport([FromHybrid] GetReportByIdQuery query)
        {
            var result = await _mediator.Send(query);

            return(Ok(result));
        }