public IActionResult CreateNewPost(PostRequest request) { _mediator.Send(PostCreationCommand.Of(request.Body, request.Title, request.PublishedAt, request.PublishedBy, request.Image)); return(Ok()); }
public Task<bool> Handle(PostCreationCommand command, CancellationToken cancellationToken) { return Task.FromResult(true); }