Example #1
0
        public IActionResult CreateNewPost(PostRequest request)
        {
            _mediator.Send(PostCreationCommand.Of(request.Body, request.Title, request.PublishedAt, request.PublishedBy, request.Image));

            return(Ok());
        }
Example #2
0
 public Task<bool> Handle(PostCreationCommand command, CancellationToken cancellationToken)
 {
     return Task.FromResult(true);
 }