public IHttpActionResult Get() { var sportService = new SportService(); var sports = sportService.getAllSports(); if (sports == null) { return(NotFound()); } return(Ok(sports)); }