public virtual PartialViewResult Logo() { var model = new LogoInfo(); var skin = HttpContext.SkinCookie(); if (!string.IsNullOrWhiteSpace(skin) && Url.IsLocalUrl(string.Format("~/content/skins/{0}/head-logo.png", skin)) && System.IO.File.Exists(Server.MapPath(string.Format("~/content/skins/{0}/head-logo.png", skin)))) { model.SkinName = skin; } return PartialView(model); }
public virtual PartialViewResult Logo() { var model = new LogoInfo(); var cookie = Request.Cookies["skin"]; if (cookie != null && !string.IsNullOrWhiteSpace(cookie.Value) && Url.IsLocalUrl(string.Format("~/content/skins/{0}/head-logo.png", cookie.Value)) && System.IO.File.Exists(Server.MapPath(string.Format("~/content/skins/{0}/head-logo.png", cookie.Value)))) { model.SkinName = cookie.Value; } return PartialView(model); }