public async Task <ActionResult <ApiResponse> > CreateProduct([FromBody] ProductDto dto) { var command = ProductDto.CreateProductCommand(dto); var result = await _dispatcher.DispatchCommand <CreateProductCommand, CreateProductCommandResponse>(command); return(PostResponse(nameof(CreateProduct), result)); }