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