private City GetCity(JsonObject regInfo, out long locationId) { locationId = regInfo.GetValue<JsonObject>("location").GetValue<long>("id"); long locId = locationId; return this.DB.City.Where(c => c.LocationId == locId).FirstOrDefault(); }