Exemplo n.º 1
0
 private void GetCookie(Guid userId)
 {
     try
     {
         var themeCookie = Request.Cookies[HomeController.ThemeCookieName];
         if (null != themeCookie)
         {
             if (profileCore.SaveTheme(userId, themeCookie.Value))
             {
                 themeCookie.Expires = DateTime.Now.AddDays(-1);
                 Response.Cookies.Set(themeCookie);
             }
         }
     }
     catch
     {
     }
 }