/// <summary> /// Prepare customer attribute search model /// </summary> /// <param name="searchModel">Customer attribute search model</param> /// <returns>Customer attribute search model</returns> public virtual Task <CustomerAttributeSearchModel> PrepareCustomerAttributeSearchModelAsync(CustomerAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }
/// <summary> /// Prepare customer attribute search model /// </summary> /// <param name="searchModel">Customer attribute search model</param> /// <returns>Customer attribute search model</returns> public virtual CustomerAttributeSearchModel PrepareCustomerAttributeSearchModel(CustomerAttributeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }