You need to use the results of Add
:
// Assign result here to predicateOuter -
predicateOuter = predicateOuter.And(d => d.code== 357);
// This should now function properly
var count = tService.GetCount(predicateOuter.Expand());
Add
doesn't modify the predicate, but rather returns a new one with the additional criteria.