public async Task <ActionResult> GetPatient([FromQuery] GetPatientByIdQuery query)
        {
            var result = await Mediator.Send(query);

            return(Ok(result));
        }
Beispiel #2
0
 public Task <GetPatientQueryResult> GetPatientById(GetPatientByIdQuery query, CancellationToken token)
 {
     return(_mediator.Send(query, token));
 }