Пример #1
0
        public IActionResult GetByCategory(int id)
        {
            var catbusiness = _businessRepository.GetAllBusinessesByCategory(id);

            if (catbusiness == null)
            {
                return(NotFound());
            }
            return(Ok(catbusiness));
        }