public HAMSPrinciple(int ID) { moduleSettings = WebModules.Configuration.ModuleConfig.GetSettings(); Data.Engineer dataUser = new Data.Engineer (moduleSettings); identity = new HAMSIdentity(ID); }
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; }