public IActionResult Get(int id) { var category = _foodRepository.GetById(id); if (category == null) { return(NotFound()); } return(Ok(category)); }