Exemple #1
0
        public async Task <IHttpActionResult> Delete([FromBody] Guid productId)
        {
            var deleted = await _catalogService.RemoveProduct(productId);

            if (deleted)
            {
                return(Ok());
            }
            else
            {
                return(NotFound());
            }
        }