public HttpResponseMessage Get(int id) { Sighting sighting = db.GetSightingById(id); if (sighting == null) { return(new HttpResponseMessage(HttpStatusCode.NotFound)); } else { return(Request.CreateResponse(HttpStatusCode.OK, sighting)); } }