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(); }
public BidController() { BidRepo = new ChallengeBidRepository(); }