/// <summary> /// Prepare best customers report search model /// </summary> /// <param name="searchModel">Best customers report search model</param> /// <returns>Best customers report search model</returns> protected virtual BestCustomersReportSearchModel PrepareBestCustomersReportSearchModel(BestCustomersReportSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare best customers report search model /// </summary> /// <param name="searchModel">Best customers report search model</param> /// <returns>Best customers report search model</returns> protected virtual BestCustomersReportSearchModel PrepareBestCustomersReportSearchModel(BestCustomersReportSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare available order, payment and shipping statuses _baseAdminModelFactory.PrepareOrderStatuses(searchModel.AvailableOrderStatuses); _baseAdminModelFactory.PreparePaymentStatuses(searchModel.AvailablePaymentStatuses); _baseAdminModelFactory.PrepareShippingStatuses(searchModel.AvailableShippingStatuses); //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }