public ActionResult Index(int batch = 0, string bundle = "") { var language = _hostBindingsService.IetfLanguageTagFor(_request.Url); var selector = new SitemapSelector { Language = language, Bundle = bundle, Batch = batch }; var ms = new MemoryStream(_sitemapRepository.ReadSitemapFor(selector)); var doc = new XmlDocument(); doc.Load(ms); return(new XmlActionResult(doc)); }
protected bool Equals(SitemapSelector other) { return(string.Equals(Language, other.Language) && string.Equals(Bundle, other.Bundle) && Batch == other.Batch); }
protected bool Equals(SitemapSelector other) { return string.Equals(Language, other.Language) && string.Equals(Bundle, other.Bundle) && Batch == other.Batch; }