Exemple #1
0
 public EmailSubscriptionManagementController(
     IEmailSubscriptionRepository emailSubscriptionRepository,
     IEmailSender emailSender)
 {
     this.emailSubscriptionRepository = emailSubscriptionRepository;
     this.emailSender = emailSender;
 }
        public EmailSubscriptionController(IEmailSubscriptionRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.EmailSubscriptionRepository = repository;
        }
Exemple #3
0
        public EmailSubscriptionController(IEmailSubscriptionRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.To <long>();
            this._UserId   = view.UserId.To <int>();
            this._OfficeId = view.OfficeId.To <int>();
            this._Catalog  = catalog;

            this.EmailSubscriptionRepository = repository;
        }
        public EmailSubscriptionController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.EmailSubscriptionRepository = new Frapid.WebsiteBuilder.DataAccess.EmailSubscription
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Exemple #5
0
        public EmailSubscriptionController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.To <long>();
            this._UserId   = AppUsers.GetCurrent().View.UserId.To <int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To <int>();
            this._Catalog  = AppUsers.GetCatalog();

            this.EmailSubscriptionRepository = new Frapid.WebsiteBuilder.DataAccess.EmailSubscription
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.EmailSubscriptionRepository == null)
            {
                this.EmailSubscriptionRepository = new Frapid.WebsiteBuilder.DataAccess.EmailSubscription
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
 public EmailSubscriptionController(IEmailSubscriptionRepository emailSubscriptionRepository)
 {
     _emailSubscriptionRepository = emailSubscriptionRepository;
 }
 public EmailSubscriptionController(IEmailSubscriptionRepository repository)
 {
     this.EmailSubscriptionRepository = repository;
 }