In the simplified code below,
if(city == \"New York City\")
{
var MyObject = from x in MyEFTable
where x.CostOfLiving == \"VERY HIGH\
List<MyObject> list = null;
if(city == "New York City")
list = (from x in MyEFTable where x.CostOfLiving == "VERY HIGH"
select x.*).ToList();
else
list = (from x in MyEFTable where x.CostOfLiving == "MODERATE"
select x.*).ToList();
foreach (var item in list)
Console.WriteLine("<item's details>");