/// <summary> /// Prepare payment method search model /// </summary> /// <param name="searchModel">Payment method search model</param> /// <returns>Payment method search model</returns> public virtual PaymentMethodSearchModel PreparePaymentMethodSearchModel(PaymentMethodSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare payment method search model /// </summary> /// <param name="searchModel">Payment method search model</param> /// <returns>Payment method search model</returns> protected virtual Task <PaymentMethodSearchModel> PreparePaymentMethodSearchModelAsync(PaymentMethodSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }