public IActionResult Post([FromBody] CreateProductCommandRequest requestModel) { CreateProductCommandResponse response = _createProductCommandHandler.CreateProduct(requestModel); return(Ok(response)); }
public async Task <IActionResult> Post([FromBody] CreateProductCommandRequest requestModel) { CreateProductCommandResponse response = await _mediator.Send(requestModel); return(Ok(response)); }