public IActionResult GetProductTypesById(int id) { var productType = _repository.GetProductTypesById(id); if (productType == null) { return(NotFound("That product type does not exist")); } return(Ok(productType)); }
public IActionResult GetProductTypesById(int id) { var productType = _repository.GetProductTypesById(id); if (productType == null) { return(NotFound("That product type does not exist")); } return(Ok(productType)); }