Exemple #1
0
        public static IChallengeBidRepository GetChallengeBidRepo()
        {
            if (bidRepo == null)
                bidRepo = new BidRepoDapper();

            return bidRepo;
        }
 public ChallengeController()
 {
     ChalRepo = RepoFactory.GetChallengeRepo();
     BidRepo = RepoFactory.GetChallengeBidRepo();
     StatusRepo = RepoFactory.GetChallengeStatusRepo();
     CustRepo = RepoFactory.GetCustomerRepo();
     Security = new Security();
 }
 public ChallengeStatusController()
 {
     StatusRepo = RepoFactory.GetChallengeStatusRepo();
     ChalRepo = RepoFactory.GetChallengeRepo();
     Security = new Security();
     BidRepo = RepoFactory.GetChallengeBidRepo();
     VoteRepo = RepoFactory.GetChallengeStatusVoteRepo();
     CustRepo = RepoFactory.GetCustomerRepo();
     FriendRepo = RepoFactory.GetFriendshipRepo();
 }
Exemple #4
0
 public BidController()
 {
     BidRepo = new ChallengeBidRepository();
 }