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()); }
public void CreateReward(RewardInformation model) { var rewardFacade = new RewardFacade(); rewardFacade.CreateReward(model); }
public RewardGroupInformation GetRewardGroupById(int id) { var rewardFacade = new RewardFacade(); return rewardFacade.GetRewardGroupById(id); }
public IEnumerable<RewardGroupInformation> GetRewardGroup() { var rewardFacade = new RewardFacade(); return rewardFacade.GetRewardGroup(); }