/// <summary> /// Prepare review type search model /// </summary> /// <param name="searchModel">Review type search model</param> /// <returns>Review type search model</returns> public virtual ReviewTypeSearchModel PrepareReviewTypeSearchModel(ReviewTypeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare review type search model /// </summary> /// <param name="searchModel">Review type search model</param> /// <returns> /// A task that represents the asynchronous operation /// The task result contains the review type search model /// </returns> public virtual Task <ReviewTypeSearchModel> PrepareReviewTypeSearchModelAsync(ReviewTypeSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }