Skip to content

Instantly share code, notes, and snippets.

@mortezadalil
Created December 12, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mortezadalil/aad98158cd1721091626c8e000e45bea to your computer and use it in GitHub Desktop.
Save mortezadalil/aad98158cd1721091626c8e000e45bea to your computer and use it in GitHub Desktop.
[HttpGet("GetAll")]
public async Task<IActionResult> GetAll()
{
var query = new GetAllPostQuery();
var result = await _mediator.Send(query);
return Ok(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment