Skip to content

Instantly share code, notes, and snippets.

@mortezadalil
Created December 8, 2019 10:31
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/06952f6d265e020103a2a3b5398e47b0 to your computer and use it in GitHub Desktop.
Save mortezadalil/06952f6d265e020103a2a3b5398e47b0 to your computer and use it in GitHub Desktop.
[HttpPost]
public async Task<IActionResult> Add(AddPostVm model)
{
await _addPostUseCase.HandleAsync(new AddPostRequest
{
Content = model.Content,
Title = model.Title
}, _addApiPresenter);
return _addApiPresenter.ContentResult;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment