var mulesinfo = getmulesdetails(); foreach(var mule in mulesinfo.where(m => m.status == "untalked-of" && !m.doesnotobey)) { updatemulestatus(mule, "preexploitative", new parameters() { action = "start over again", sentiment = "positive" }); }