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

_CustomSearchDesignerGridBinding() private method

private _CustomSearchDesignerGridBinding ( Telerik.Web.Mvc.GridCommand command ) : System.Web.Mvc.ActionResult
command Telerik.Web.Mvc.GridCommand
return System.Web.Mvc.ActionResult
        public ActionResult _CustomSearchDesignerGridBinding(GridCommand command)
        {
            try{

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

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

                return View("SearchDesigner", new GridModel((List<SearchAttributeViewModel>)Session["searchAttributeList"]));
            }
            catch(Exception e)
            {
                ModelState.AddModelError(String.Empty, e.Message);
                return View();
            }
        }