コード例 #1
0
ファイル: RepoFactory.cs プロジェクト: mchambers/Daremeto
        public static IChallengeStatusVoteRepository GetChallengeStatusVoteRepo()
        {
            if (chalStatusVoteRepo == null)
                chalStatusVoteRepo = new ChallengeStatusVoteRepository();

            return chalStatusVoteRepo;
        }
コード例 #2
0
 public ChallengeStatusController()
 {
     StatusRepo = RepoFactory.GetChallengeStatusRepo();
     ChalRepo = RepoFactory.GetChallengeRepo();
     Security = new Security();
     BidRepo = RepoFactory.GetChallengeBidRepo();
     VoteRepo = RepoFactory.GetChallengeStatusVoteRepo();
     CustRepo = RepoFactory.GetCustomerRepo();
     FriendRepo = RepoFactory.GetFriendshipRepo();
 }