/// <summary> /// Prepare store pickup point search model /// </summary> /// <param name="searchModel">Store pickup point search model</param> /// <returns>Store pickup point search model</returns> public StorePickupPointSearchModel PrepareStorePickupPointSearchModel(StorePickupPointSearchModel searchModel) { if (searchModel == null) throw new ArgumentNullException(nameof(searchModel)); //prepare page parameters searchModel.SetGridPageSize(); return searchModel; }
/// <summary> /// Prepare store pickup point search model /// </summary> /// <param name="searchModel">Store pickup point search model</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the store pickup point search model /// </returns> public Task <StorePickupPointSearchModel> PrepareStorePickupPointSearchModelAsync(StorePickupPointSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }