// // 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; } }