public JObject Get(ObjectId itemId) { try { var queryableLocation = LocationCollection.AsQueryable(); var queryOffer = from d in queryableLocation where d.Id.Equals(itemId) select d; var location = queryableLocation.First(); return (JObject.FromObject( new { status = "success", result = location } )); } catch (Exception ex) { return (JObject.FromObject( new { status = "Exception Thrown", result = false, message = ex.Message } )); } }