/// <summary> /// Prepare product attribute search model /// </summary> /// <param name="searchModel">Product attribute search model</param> /// <returns>Product attribute search model</returns> public virtual ProductAttributeSearchModel PrepareProductAttributeSearchModel(ProductAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare product attribute search model /// </summary> /// <param name="searchModel">Product attribute search model</param> /// <returns>Product attribute search model</returns> public virtual Task <ProductAttributeSearchModel> PrepareProductAttributeSearchModelAsync(ProductAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }