//
        // GET: /EmployeeNode/

        public ActionResult Index()
        {
            try
            {
                Session["SearchEmpFullName"] = null;  // to hide emp search
                Session["SearchEmpCode"]     = null;
                Session["SearchEmpID"]       = null;

                ConfigurationDAL      configDAL = new ConfigurationDAL();
                EmployeeNodeViewModel model     = new EmployeeNodeViewModel();
                model.NodesList               = configDAL.GetNodeList();
                model.EmployeeList            = configDAL.GetAllActiveEmployeesList();
                model.EmployeeNodeMappingList = configDAL.GetEmployeeNodeMapping();
                model.SearchedUserDetails     = new SearchedUserDetails();
                return(View("Index", model));
            }
            catch (Exception)
            {
                throw;
            }
        }
        //
        // GET: /AccessRights/

        public ActionResult Index()
        {
            try
            {
                Session["SearchEmpFullName"] = null;  // to hide emp search
                Session["SearchEmpCode"]     = null;
                Session["SearchEmpID"]       = null;

                ConfigurationDAL        configDAL = new ConfigurationDAL();
                AccessRightsNodeDetails model     = new AccessRightsNodeDetails();
                model.AccessRightsList    = configDAL.GetAccessRightsNodeMapping();
                model.NodesList           = configDAL.GetNodeList();
                model.AccessList          = configDAL.GetAccessRightsList();
                model.SearchedUserDetails = new SearchedUserDetails();
                return(View("Index", model));
            }
            catch (Exception)
            {
                throw;
            }
        }