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; }
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>(); }
public ActionResult GetWithdrawCountBySearch(int? amount, string transferId, WithdrawState withdrawState) { var count = IoC.Resolve<IWithdrawQuery>().CountWithdrawBySearch(amount, transferId, withdrawState); return Json(count); }
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); }
public ActionResult GetWithdrawCountBySearch(int? userID, CurrencyType currencyType, WithdrawState state) { var count = IoC.Resolve<IWithdrawQuery>().CountCompleteWithdrawBySearch(userID, currencyType, state); return Json(count); }
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); }