Esempio n. 1
0
        public IActionResult Get()
        {
            List <Event> events = _srv.AllEvents();

            if (events.Count > 0)
            {
                return(Ok(events));
            }
            return(NotFound("No events exist!"));
        }