Exemplo n.º 1
0
        public ActionResult <List <School> > Get()
        {
            var schools = _services.GetAllSchools();

            if (schools.Count == 0)
            {
                return(NotFound("No schools to show !!!"));
            }
            return(Ok(schools));
        }