public ActionResult Delete(int productId) { var isDeleted = service.DeleteProduct(productId); if (!isDeleted) { return(new NotFoundObjectResult(productId)); } return(Ok()); }