示例#1
0
 public LimitController(ICustomerRepository cusRepo, IReportRepository rptRepo, ChFrontContext context, IOptions <SystemConf> conf, ILogger <LimitController> logger, IOptions <TIPMobile> _mobile, IOptions <Smtp> smtp, IOptions <IIA> _iia, ILoginServices loginServices) : base(context, logger, _mobile, _iia, smtp, loginServices, conf, cusRepo, rptRepo)
 {
     this._context       = context;
     this._mobile        = _mobile.Value;
     this._logger        = logger;
     this._smtp          = smtp.Value;
     this._conf          = conf.Value;
     this._loginServices = loginServices;
     this._rptRepo       = rptRepo;
     this._cusRepo       = cusRepo;
 }
示例#2
0
        //public StoreAccount sessionStoreAccount
        //{
        //    get
        //    {
        //        if (this.StoreAccountID == null)
        //        {
        //            var query = this._context.StoreAccounts
        //                .Include(s => s.StoreTransactions)
        //                .Where(s => s.IsOpen == true)
        //                .FirstOrDefault();
        //            return query;
        //        }
        //        else
        //        {
        //            var query = this._context.StoreAccounts
        //                .Include(s => s.StoreTransactions)
        //                .Where(s => s.ID == this.StoreAccountID.Value)
        //                .FirstOrDefault();
        //            return query;
        //        }
        //    }
        //}

        //public StoreAccount StoreAccount(int ID)
        //{

        //    var query = this._context.StoreAccounts
        //        .Include(s => s.StoreTransactions)
        //        .Where(s => s.ID == ID)
        //        .FirstOrDefault();
        //    return query;
        //}


        public StoreAccountServices(ChFrontContext context)
        {
            this._context = context;
        }