public IHttpActionResult Get(int id) { try { Track t = TrackDB.GetTrackById(id); if (t != null) { return(Ok(t)); } else { return(Content(HttpStatusCode.NotFound, "Track dont found!")); } } catch (Exception ex) { return(Content(HttpStatusCode.BadRequest, ex)); } }