Example #1
0
        public bool VerifyUser()
        {
            UserDBObj   db      = new UserDBObj();
            List <User> myUsers = db.GetAllUsers();

            foreach (User user in myUsers)
            {
                if (user.UserName == this.UserName && user.UserType == this.UserType)
                {
                    return(true);
                }
            }
            return(false);
        }
Example #2
0
        public List <User> Get()
        {
            UserDBObj readObject = new UserDBObj();

            return(readObject.GetAllUsers());
        }