/// <summary> /// Prepare checkout attribute search model /// </summary> /// <param name="searchModel">Checkout attribute search model</param> /// <returns>Checkout attribute search model</returns> public virtual CheckoutAttributeSearchModel PrepareCheckoutAttributeSearchModel(CheckoutAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare checkout attribute search model /// </summary> /// <param name="searchModel">Checkout attribute search model</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the checkout attribute search model /// </returns> public virtual Task <CheckoutAttributeSearchModel> PrepareCheckoutAttributeSearchModelAsync(CheckoutAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }