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