Exemplo n.º 1
0
 public static bool UpdateSiteSettings(string siteKey, string value)
 {
     try
     {
         EfUnitOfWork unitofWork  = new EfUnitOfWork();
         var          siteSetting = unitofWork.SiteSettingValues.Where(x => x.SiteKey == siteKey).FirstOrDefault();
         siteSetting.Value = value;
         unitofWork.UpdateAndSave(siteSetting);
         return(true);
     }
     catch
     {
     }
     return(false);
 }