public IActionResult GetProductType(int id) { var type = _productsManager.GetProductType(id); return(type != null ? (IActionResult)Ok(type) : NotFound()); }