public async Task <Unit> Handle(DeleteProductCommandModel request, CancellationToken cancellationToken)
        {
            await productCommandService.DeleteAsync(request.Id);

            return(Unit.Value);
        }
示例#2
0
 public async Task DeleteProduct([FromBody] decimal productId)
 {
     await _productCommandService.DeleteAsync(productId);
 }