public PaymentCardController(IPaymentCardRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.PaymentCardRepository = repository;
        }
Esempio n. 2
0
        public PaymentCardController(IPaymentCardRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.PaymentCardRepository = repository;
        }
Esempio n. 3
0
 public PaymentService(
     IOptions <AppSettings> appSettings,
     IHttpClientFactory httpClientFactory,
     IPaymentRepository paymentRepository,
     IPaymentCardRepository paymentCardRepository,
     IMapper mapper)
 {
     _appSettings           = appSettings.Value;
     _httpClientFactory     = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _paymentRepository     = paymentRepository ?? throw new ArgumentNullException(nameof(paymentRepository));
     _paymentCardRepository = paymentCardRepository ?? throw new ArgumentNullException(nameof(paymentCardRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
        public PaymentCardController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.PaymentCardRepository = new MixERP.Net.Schemas.Core.Data.PaymentCard
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Esempio n. 5
0
        public PaymentCardController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.PaymentCardRepository = new MixERP.Net.Schemas.Core.Data.PaymentCard
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }