Example #1
0
 /// <summary>
 /// query all form table ByReadOnlyDB
 /// </summary>
 /// <returns></returns>
 public List <SiteSettingDto> ListByReadOnlyDB()
 {
     try
     {
         return(Mapper.Map <List <SiteSettingDto> >(_repository.GetAllListByReadOnlyDB(it => it.ID != Guid.Empty).OrderByDescending(it => it.CreateTime)));
     }
     catch (Exception ex)
     {
         _log.LogError("SiteSettingAppService ListByReadOnlyDB error occured:" + ex.Message);
         return(null);
     }
 }