public async Task <AssignDeviceSearchModel> PrepareAssignDeviceSearchModel(AssignDeviceSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } await _baseModelFactory.PrepareStores(searchModel.AvailableStores); searchModel.SetPopupGridPageSize(); return(searchModel); }
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)); }