public ActionResult AplicationClear(bool Memory, bool Search, bool Images, bool Scripts, bool Styles) { if (LS.CurrentUser.RolesList.Contains("DomainAdmin")) { if (Memory) { CleanCache.CleanOutputCache(); CleanCache.CleanSettingsCache(); } } else { if (Memory) { CleanCache.RestartApplication(); } } if (Search) { CleanCache.CleanSearchCache(); } if (Images) { CleanCache.CleanImageCache(); } if (Scripts) { ScriptHelper.ClearCache(); } if (Styles) { StyleHelper.ClearCache(); } return(RedirectToAction("AplicationClearDone")); }