Exemple #1
0
 public ActionResult SiteMapPage(string xml, int skip = 0, int take = 20000)
 {
     if (string.IsNullOrEmpty(xml) || xml != "1")
     {
         ViewBag.SiteMapData = RP.GetSiteMapFormated();
         return(View(CurrentPage));
     }
     else
     {
         HttpContext.Response.Clear();
         return(Content(RP.GetSiteMapFormatedXML(skip, take), "text/xml"));
     }
 }