/// <summary> /// Prepare country report search model /// </summary> /// <param name="searchModel">Country report search model</param> /// <returns>Country report search model</returns> public virtual CountryReportSearchModel PrepareCountrySalesSearchModel(CountryReportSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare country report search model /// </summary> /// <param name="searchModel">Country report search model</param> /// <returns>Country report search model</returns> public virtual CountryReportSearchModel PrepareCountrySalesSearchModel(CountryReportSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare available order statuses _baseAdminModelFactory.PrepareOrderStatuses(searchModel.AvailableOrderStatuses); //prepare available payment statuses _baseAdminModelFactory.PreparePaymentStatuses(searchModel.AvailablePaymentStatuses); //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }