// public string CUSTOM_APP_TAG_SEO = "custom-app-tag-seo"; /* * public GlobalSeo GetSearchSeo () { * var elements = this.GetElement (); * var htmlDocument = elements.Item1; * var element = elements.Item2; * * var result = element.InnerText; * * var seoJson = this.GetSeoString (result); * * return Newtonsoft.Json.JsonConvert.DeserializeObject<GlobalSeo> (seoJson, this.JsonSettings);; * } */ public void UpdateSearchSeo(GlobalSeo seo) { /*var elements = this.GetElement (); * var htmlDocument = elements.Item1; * var element = elements.Item2; */ var seoResult = Newtonsoft.Json.JsonConvert.SerializeObject(seo, this.JsonSettings); var pathToFile = _hostingEnvironment.WebRootPath + "/../files/ceo/search.json"; File.WriteAllText(pathToFile, seoResult); }
public IActionResult UpdateSearchSeo([FromBody] GlobalSeo seo) { this._seoRepository.UpdateSearchSeo(seo); return(Ok(true)); }