public async Task <Unit> Handle(DeleteProductCommandModel request, CancellationToken cancellationToken) { await productCommandService.DeleteAsync(request.Id); return(Unit.Value); }
public async Task DeleteProduct([FromBody] decimal productId) { await _productCommandService.DeleteAsync(productId); }