public async Task <ActionResult <PostProductCommandResponse> > Post(PostProductCommand request, CancellationToken cancellationToken = default(CancellationToken)) { return(await Mediator.Send(request, cancellationToken)); }
public async Task <ActionResult <PostProductCommandResponse> > Post([FromBody] PostProductCommand request) { return(await Send(request)); }
public async Task <IActionResult> PostAsync(PostProductCommand data) { var result = await _mediatr.Send(data); return(Ok(result)); }
public async Task <IActionResult> Post(PostProductCommand data) { var result = await meciater.Send(data); return(Ok(result)); }