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

SearchDesigner() public method

public SearchDesigner ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult SearchDesigner()
        {
            ViewBag.Title = PresentationModel.GetViewTitleForTenant("Manage Search", this.Session.GetTenant());

            try
            {
                //if (Session["searchAttributeList"] == null)
                //{
                ISearchDesigner sd = GetSearchDesigner();

                    Session["searchAttributeList"] = GetListOfSearchAttributeViewModels(sd.Get());
                    Session["metadatNodes"] = sd.GetMetadataNodes();
                    ViewData["windowVisible"] = false;
                    Session["IncludePrimaryData"] = sd.IsPrimaryDataIncluded();
                //}

            }
            catch(Exception e)
            {
                ModelState.AddModelError(String.Empty, e.Message);
            }

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