Example #1
0
 public virtual PartialViewResult Apply(string skinFile)
 {
     var model = new ApplySkinInfo { SkinFile = skinFile };
     var skin = HttpContext.SkinCookie();
     if (!string.IsNullOrWhiteSpace(skin))
     {
         model.SkinName = skin;
     }
     return PartialView(model);
 }
Example #2
0
 public virtual PartialViewResult Apply(string skinFile)
 {
     var model = new ApplySkinInfo { SkinFile = skinFile };
     var cookie = Request.Cookies["skin"];
     if (cookie != null && !string.IsNullOrWhiteSpace(cookie.Value))
     {
         model.SkinName = cookie.Value;
     }
     return PartialView(model);
 }