public ActionResult <List <ProductOptionDto> > GetProductOptions(int id) { try { var productOption = _ProductOptionsController.List(id); if (productOption != null && productOption.Count > 0) { return(Ok(productOption)); } else { return(NotFound("Product Options could not be found")); } } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }