/// <summary> /// Prepare recurring payment search model /// </summary> /// <param name="searchModel">Recurring payment search model</param> /// <returns>Recurring payment search model</returns> public virtual RecurringPaymentSearchModel PrepareRecurringPaymentSearchModel(RecurringPaymentSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare recurring payment search model /// </summary> /// <param name="searchModel">Recurring payment search model</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the recurring payment search model /// </returns> public virtual Task <RecurringPaymentSearchModel> PrepareRecurringPaymentSearchModelAsync(RecurringPaymentSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }