BExIS.Web.Shell.Areas.DDM.Controllers.AdminController.ResetConfig C# (CSharp) Method

ResetConfig() public method

public ResetConfig ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult ResetConfig()
        {
            ViewBag.Title = PresentationModel.GetViewTitleForTenant("Manage Search", this.Session.GetTenant());
            try
            {
                ISearchDesigner sd = GetSearchDesigner();
                sd.Reset();
                Session["searchAttributeList"] = GetListOfSearchAttributeViewModels(sd.Get());
                Session["metadatNodes"] = sd.GetMetadataNodes();
                ViewData["windowVisible"] = false;
            }
            catch(Exception e)
            {
                ModelState.AddModelError(String.Empty, e.Message);
            }

            return View("SearchDesigner", (List<SearchAttributeViewModel>)Session["searchAttributeList"]);
        }