Exemple #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);
 }
Exemple #2
0
 /// <summary>
 /// Logs the current user out of the vending machine system
 /// </summary>
 public void LogoutUser()
 {
     Permission = new Authorization(null);
 }