Пример #1
0
        public HAMSPrinciple(int ID)
        {
            moduleSettings = WebModules.Configuration.ModuleConfig.GetSettings();

            Data.Engineer dataUser = new Data.Engineer (moduleSettings);
            identity = new HAMSIdentity(ID);
        }
Пример #2
0
        public HAMSPrinciple ValidateLogin(string name)
        {
            moduleSettings = WebModules.Configuration.ModuleConfig.GetSettings();
            Data.Engineer user = new Data.Engineer(moduleSettings);
            int newID = user.ValidateLogin(name);

            if (newID > -1 )
                return new HAMSPrinciple(newID);
            else
                return null;
        }