Esempio n. 1
0
 /// <summary>
 ///  query list by lanbuda expression
 /// </summary>
 /// <param name="predicate"></param>
 /// <returns></returns>
 public List <SiteSettingDto> QueryList(Expression <Func <SiteSetting, bool> > predicate)
 {
     try
     {
         return(Mapper.Map <List <SiteSettingDto> >(_repository.QueryList(predicate)));
     }
     catch (Exception ex)
     {
         _log.LogError("SiteSettingAppService List error occured:" + ex.Message);
         return(null);
     }
 }