Esempio n. 1
0
        public EmployeeMgr(IEmployeeSvc repository)
        {
            this.repository = repository;

            this.employeeList = (ApplicationStore<IList<Employee>>)HttpContext.Current.Application["Employee"];
            this.groupManagerList = (ApplicationStore<IList<GroupManager>>)HttpContext.Current.Application["GroupManager"];
            this.directorList = (ApplicationStore<IList<Director>>)HttpContext.Current.Application["Director"];

            if (employeeList == null || groupManagerList == null || directorList == null ||
                !employeeList.isValid() || !groupManagerList.isValid() || !directorList.isValid())
                refresh();
        }