/// <summary> /// Creates a new instance of the AllVotes Controller /// </summary> /// <param name="logic">AllVotes logic object (transient)</param> public AllVotesController(IAllVotesLogic logic) { this.allVotesLogic = logic; }
/// <summary> /// Creates a new instance of the oneVote logic. /// </summary> /// <param name="dbPassword">The password used for connecting to the db</param> public OneVoteLogic(string dbPassword) { this.oneVoteRepo = new OneVoteRepository(dbPassword); this.allVotesLogic = new AllVotesLogic(dbPassword); }