Exemplo n.º 1
0
        public SmtpConfigController(ISmtpConfigRepository 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.SmtpConfigRepository = repository;
        }
Exemplo n.º 2
0
        public SmtpConfigController(ISmtpConfigRepository 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.SmtpConfigRepository = repository;
        }
Exemplo n.º 3
0
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.SmtpConfigRepository == null)
            {
                this.SmtpConfigRepository = new Frapid.Config.DataAccess.SmtpConfig
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
Exemplo n.º 4
0
        public SmtpConfigController()
        {
            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.SmtpConfigRepository = new Frapid.Config.DataAccess.SmtpConfig
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Exemplo n.º 5
0
        public SmtpConfigController()
        {
            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.SmtpConfigRepository = new Frapid.Config.DataAccess.SmtpConfig
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Exemplo n.º 6
0
 public SmtpConfigController(ISmtpConfigRepository repository)
 {
     this.SmtpConfigRepository = repository;
 }