Created
December 8, 2019 10:31
-
-
Save mortezadalil/06952f6d265e020103a2a3b5398e47b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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