public ContentResult ClearTocCache(string culture, string productCategory, string docSetCategory) { if (string.IsNullOrEmpty(_cultureService.CurrentCulture) || string.IsNullOrEmpty(productCategory) || string.IsNullOrEmpty(docSetCategory)) { return(Content("Input paramters are incorrect, please follow below example:<br/>docpage/clearTocCache?cluture=en-us&productCategory=add-ins&docSetCategory=reference")); } else { DocContentManager.ClearTocCache(_cultureService.CurrentCulture, productCategory, docSetCategory); return(Content("Specifed Toc Cache cleared")); } }
public ContentResult ClearAllTocCache() { DocContentManager.ClearTocCache(); return(Content("All Toc Cache cleared")); }