예제 #1
0
 public EntityResult <List <Module> > GetList(Expression <Func <Module, bool> > filter = null, params string[] includeList)
 {
     try
     {
         var Modules = _moduleDal.GetList(filter, includeList);
         if (Modules != null)
         {
             return(new EntityResult <List <Module> >(Modules, "Başarılı", ResultState.Success));
         }
         return(new EntityResult <List <Module> >(null, "Hata Oluştu", ResultState.Warning));
     }
     catch (Exception ex)
     {
         return(new EntityResult <List <Module> >(null, "Database Hatası " + ex.ToInnestException().Message, ResultState.Error));
     }
 }
예제 #2
0
 public List <Module> GetList()
 {
     return(_moduleDal.GetList());
 }