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