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