Exemplo n.º 1
0
        public BizProgressService(BizProgressContext progContext,
                                  HttpContextBase context,
                                  IBizCustomer customer,
                                  IBizSetting setting)
        {
            _context  = progContext;
            _identity = context.User.Identity as ClaimsIdentity;
            _customer = customer;
            _setting  = setting;

            _isAdmin = _identity.HasClaim("role", "progress-admin");
        }
Exemplo n.º 2
0
        public ModelValidation(ILog log,
                               ICompanyHelper company,
                               IVoucherHelper voucher,
                               IAccountBookHelper accountBook,
                               IBizSetting setting,
                               IBizCustomer customer)
        {
            _log         = log;
            _company     = company;
            _voucher     = voucher;
            _accountBook = accountBook;

            _setting  = setting;
            _customer = customer;
        }
Exemplo n.º 3
0
 public BizCustomerApiController(IBizCustomer customer,
                                 IModelValidation modelValid)
 {
     _customer   = customer;
     _modelValid = modelValid;
 }
Exemplo n.º 4
0
 public CustomerController(HttpContextBase context, IBizCustomer customer)
 {
     _identity = context.User.Identity as ClaimsIdentity;
     _customer = customer;
 }