Skip to content

Instantly share code, notes, and snippets.

@mortezadalil
Created December 13, 2019 10:40
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/f6ff3bc04f07ce49d930e832f8cfa695 to your computer and use it in GitHub Desktop.
Save mortezadalil/f6ff3bc04f07ce49d930e832f8cfa695 to your computer and use it in GitHub Desktop.
[HttpPost("Add2")]
public async Task<IActionResult> Add2([FromBody]AddPostCommand command)
{
var result = await _mediator.Send(command);
return Ok(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment