Example #1
0
        //
        // 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;
            }
        }