Ejemplo n.º 1
0
        private FacadeRepository()
        {
            AccountDataAccess = new AccountDataAccess();
            MatchDataAccess = new MatchDataAccess();
            RewardDataAccess = new RewardDataAccess();
            TicketDataAccess = new TicketDataAccess();
            WinnerDataAccess = new WinnerDataAccess();

            MatchFacade = new MatchFacade();
            AccountFacade = new AccountFacade();
            RewardFacade = new RewardFacade();
            TicketFacade = new TicketFacade();
            WinnerFacade = new WinnerFacade();
            PhoneVerificationFacade = new PhoneVerificationFacade(new TwilioSMSSender());
        }
Ejemplo n.º 2
0
 public void CreateReward(RewardInformation model)
 {
     var rewardFacade = new RewardFacade();
     rewardFacade.CreateReward(model);
 }
Ejemplo n.º 3
0
 public RewardGroupInformation GetRewardGroupById(int id)
 {
     var rewardFacade = new RewardFacade();
     return rewardFacade.GetRewardGroupById(id);
 }
Ejemplo n.º 4
0
 public IEnumerable<RewardGroupInformation> GetRewardGroup()
 {
     var rewardFacade = new RewardFacade();
     return rewardFacade.GetRewardGroup();
 }