public static IChallengeStatusVoteRepository GetChallengeStatusVoteRepo() { if (chalStatusVoteRepo == null) chalStatusVoteRepo = new ChallengeStatusVoteRepository(); return chalStatusVoteRepo; }
public ChallengeStatusController() { StatusRepo = RepoFactory.GetChallengeStatusRepo(); ChalRepo = RepoFactory.GetChallengeRepo(); Security = new Security(); BidRepo = RepoFactory.GetChallengeBidRepo(); VoteRepo = RepoFactory.GetChallengeStatusVoteRepo(); CustRepo = RepoFactory.GetCustomerRepo(); FriendRepo = RepoFactory.GetFriendshipRepo(); }