/// <summary> /// Prepare category search model to add to the discount /// </summary> /// <param name="searchModel">Category search model to add to the discount</param> /// <returns>Category search model to add to the discount</returns> public virtual AddCategoryToDiscountSearchModel PrepareAddCategoryToDiscountSearchModel(AddCategoryToDiscountSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetPopupGridPageSize(); return(searchModel); }
/// <summary> /// Prepare category search model to add to the discount /// </summary> /// <param name="searchModel">Category search model to add to the discount</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the category search model to add to the discount /// </returns> public virtual Task <AddCategoryToDiscountSearchModel> PrepareAddCategoryToDiscountSearchModelAsync(AddCategoryToDiscountSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetPopupGridPageSize(); return(Task.FromResult(searchModel)); }