예제 #1
0
        public async Task <AssignDeviceSearchModel> PrepareAssignDeviceSearchModel(AssignDeviceSearchModel searchModel)
        {
            if (searchModel == null)
            {
                throw new ArgumentNullException(nameof(searchModel));
            }

            await _baseModelFactory.PrepareStores(searchModel.AvailableStores);

            searchModel.SetPopupGridPageSize();

            return(searchModel);
        }
예제 #2
0
        public async Task <TransActivitySearchModel> PrepareTransActivitySearchModel(TransActivitySearchModel searchModel)
        {
            if (searchModel == null)
            {
                throw new ArgumentNullException(nameof(searchModel));
            }

            //prepare selectlist
            await _baseModelFactory.PrepareStores(searchModel.Branches);

            searchModel.SetGridPageSize();

            return(await Task.FromResult(searchModel));
        }