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; }
// 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; }