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