Exemplo n.º 1
0
        public IHttpActionResult Get()
        {
            var sportService = new SportService();

            var sports = sportService.getAllSports();

            if (sports == null)
            {
                return(NotFound());
            }

            return(Ok(sports));
        }