Ejemplo n.º 1
0
 public IEnumerable <Report> GetAllReports(Func <Report, bool> pFunc = null)
 {
     if (pFunc == null)
     {
         return(dal.GetAllReports());
     }
     else
     {
         return((from report in dal.GetAllReports()
                 where pFunc(report)
                 select report).ToList());
     }
 }