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