public IHttpActionResult Get(int id) { var sportService = new SportService(); SportDTO account = sportService.getSportById(id); if (account == null) { return(NotFound()); } return(Ok(account)); }