Example #1
0
        public IEnumerable<DotPay.ViewModel.WithdrawListModel> GetWithdrawBySearch(int? amount, string transferId, WithdrawState state, int page, int pageCount)
        {
            var paramters = new object[] { amount.HasValue ? amount.Value : 0, transferId.NullSafe(), (int)state, (page - 1) * pageCount, pageCount };

            var result = this.Context.Sql(withdraw_Sql)
                                   .Parameters(paramters)
                                   .QueryMany<WithdrawListModel>();
            return result;
        }
Example #2
0
        public int CountWithdrawBySearch(int? amount, string transferId, WithdrawState state)
        {
            var paramters = new object[] { amount.HasValue ? amount.Value : 0, transferId.NullSafe(), (int)state };

            return this.Context.Sql(withdrawCount_Sql)
                               .Parameters(paramters)
                               .QuerySingle<int>();
        }
Example #3
0
        public ActionResult GetWithdrawCountBySearch(int? amount, string transferId, WithdrawState withdrawState)
        {
            var count = IoC.Resolve<IWithdrawQuery>().CountWithdrawBySearch(amount, transferId, withdrawState);

            return Json(count);
        }
Example #4
0
        public ActionResult GetWithdrawBySearch(int? amount, string transferId, WithdrawState withdrawState, int page)
        {
            var currencies = IoC.Resolve<IWithdrawQuery>().GetWithdrawBySearch(amount, transferId, withdrawState, page, Constants.DEFAULT_PAGE_COUNT);

            return Json(currencies);
        }
Example #5
0
        public ActionResult GetWithdrawCountBySearch(int? userID, CurrencyType currencyType, WithdrawState state)
        {
            var count = IoC.Resolve<IWithdrawQuery>().CountCompleteWithdrawBySearch(userID, currencyType, state);

            return Json(count);
        }
Example #6
0
        public ActionResult GetWithdrawBySearch(int? userID, CurrencyType currencyType, WithdrawState state, int page)
        {
            var currencies = IoC.Resolve<IWithdrawQuery>().GetCompleteWithdrawBySearch(userID, currencyType, state, page, Constants.DEFAULT_PAGE_COUNT);

            return Json(currencies);
        }