/// <summary> /// Constructor /// </summary> public SubscriptionBlockController(IUserRepository userRepository, IPageSubscriptionRepository pageSubscriptionRepository, IPageRepository pageRepository, IPageRouteHelper pageRouteHelper) : base(pageRouteHelper) { _userRepository = userRepository; _subscriptionRepository = pageSubscriptionRepository; _pageRepository = pageRepository; }
/// <summary> /// Constructor /// </summary> public SubscriptionBlockController(IUserRepository userRepository, IPageSubscriptionRepository pageSubscriptionRepository, IPageRepository pageRepository) { _userRepository = userRepository; _subscriptionRepository = pageSubscriptionRepository; _pageRepository = pageRepository; }
/// <summary> /// Constructor /// </summary> public SubscriptionBlockController() { this.userRepository = ServiceLocator.Current.GetInstance <IUserRepository>(); this.subscriptionRepository = ServiceLocator.Current.GetInstance <IPageSubscriptionRepository>(); this.pageRepository = ServiceLocator.Current.GetInstance <IPageRepository>(); }