Example #1
0
        public async Task <IActionResult> DeleteAsync(int productId)
        {
            var result = await manageProductService.DeleteAsync(productId);

            if (result)
            {
                return(Ok());
            }

            return(NotFound($"Can not find the Product by {productId}"));
        }