Example #1
0
 public SiteIdentity(string currentUserName, string cnKey)
 {
     //DataRow row1 = new Js.DAO.Account.UserDao().Retrieve(currentUserName);
     this.model = new Js.DAO.Account.UserDao(cnKey).GetModel(currentUserName);
     this.userName = currentUserName;
     this.userID = this.model.UserID;
 }
Example #2
0
 // Methods
 public SiteIdentity(int currentUserID)
 {
     //DataRow row1 = new Js.DAO.Account.UserDao().Retrieve(currentUserID);
     this.model = new Js.DAO.Account.UserDao().GetModel(currentUserID);
     this.userName = this.model.UserName;
     this.userID = currentUserID;
 }