예제 #1
0
 /// <summary>
 /// Constructor that requires the security DAO
 /// </summary>
 /// <param name="db">Interface for the user security dao</param>
 public UserManager(IUserSecurityDAO db, UserItem user)
 {
     _db        = db;
     Permission = new Authorization(user);
 }
예제 #2
0
 /// <summary>
 /// Logs the current user out of the vending machine system
 /// </summary>
 public void LogoutUser()
 {
     Permission = new Authorization(null);
 }