コード例 #1
0
        // GET: DepositOrder
        public ActionResult Index()
        {
            var Customer = Session["UserC"] as UserSession;
            var Status   = new List <int>();

            Status.Add((int)Commons.DepositStatus.WaitingPay);
            //Status.Add((int)Commons.DepositStatus.Cancel);
            var model = fac.GetListDepositTransaction(Customer.UserId, Status);

            ViewBag.disabled = model != null && model.Count > 0;
            var config   = facS.GetList().Where(x => x.ValueType == (int)Commons.ConfigType.WaitingTime).FirstOrDefault();
            var IsCancel = model.Any(x => x.Status == (int)Commons.DepositStatus.Cancel);

            if (config != null && !IsCancel)
            {
                ViewBag.time = Convert.ToInt16(config.Value) * 60;
            }
            return(View(model));
        }
コード例 #2
0
        // GET: Profile
        public ActionResult Index()
        {
            var model = new CMS_ProfileModels();

            model.OTPs       = _factory.GetList((int)Commons.SMSType.OTP);
            model.Marketings = _factory.GetList((int)Commons.SMSType.Marketing);
            var Customer = Session["UserC"] as UserSession;

            model.Transactions = _fac.GetListDepositTransaction(Customer.UserId);
            return(View(model));
        }