public IEnumerable <FallPrediction> GetAllFallPredictions(Func <FallPrediction, bool> filter = null) { List <FallPrediction> result; if (filter == null) { result = dal.GetAllFallPredictions(); } else { result = (from m in dal.GetAllFallPredictions() where filter(m) select m).ToList(); } return(result); }