/// <summary> /// Prepare customer role search model /// </summary> /// <param name="searchModel">Customer role search model</param> /// <returns>Customer role search model</returns> public virtual CustomerRoleSearchModel PrepareCustomerRoleSearchModel(CustomerRoleSearchModel searchModel) { if (searchModel == null) throw new ArgumentNullException(nameof(searchModel)); //prepare page parameters searchModel.SetGridPageSize(); return searchModel; }
/// <summary> /// Prepare customer role search model /// </summary> /// <param name="searchModel">Customer role search model</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the customer role search model /// </returns> public virtual Task <CustomerRoleSearchModel> PrepareCustomerRoleSearchModelAsync(CustomerRoleSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }