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); }
public List <User> Get() { UserDBObj readObject = new UserDBObj(); return(readObject.GetAllUsers()); }