Skip to content

Instantly share code, notes, and snippets.

@babaktaremi
Created February 18, 2021 08:40
Show Gist options
  • Save babaktaremi/0969747336d50c553ad008e569160a63 to your computer and use it in GitHub Desktop.
Save babaktaremi/0969747336d50c553ad008e569160a63 to your computer and use it in GitHub Desktop.
[HttpGet("GetMovieByName")]
public async Task<IActionResult> GetMovieByName([FromQuery] GetMovieByNameQuery model, CancellationToken cancellationToken)
{
var query = await _mediator.Send(model, cancellationToken);
return Ok(query);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment