public static bool Authenticate(string email, string password, DBManagerClient DB) { try { User userToAuthenticate = DB.getUserByEmail(email); if (userToAuthenticate == null) { return(false); } if (userToAuthenticate.password != password) { return(false); } else { return(true); } } catch (Exception e) { return(false); } }
public UserManager() { this.DB = new DBManagerClient(); }
public CategoryManager() { this.DB = new DBManagerClient(); }
public ProductManager() { this.DB = new DBManagerClient(); }
public BrandManager() { this.DB = new DBManagerClient(); }