예제 #1
0
        public override async Task UpdateEntries()
        {
            foreach (IBreedEntryEntityWithAdditionalData entry in Items)
            {
                SelectedItem = entry;
                await Task.Delay(TimeSpan.FromMilliseconds(20));

                IBreedEntryEntity actualentry = await _service.GetBreedEntryAsync <BreedEntry>(entry.Id);

                actualentry.Number = entry.EntryNumber;
                await _service.UpdateEntityAsync(actualentry);
            }
        }
예제 #2
0
        public async override void Prepare()
        {
            DogShowList = await _dogShowService.GetDogShowListAsync <DogShowDetail>();

            SelectedDogRegistration = await _dogRegistrationService.GetDogRegistrationAsync <DogRegistrationDetail>(data.DogId);

            IBreedEntryEntity entry = await _breedEntryService.GetBreedEntryAsync <BreedEntry>(data.Id);

            entry.Classes = await _dogShowService.GetListOfClassEntriesForBreedEntryAsync <BreedClassEntryEntityWithClassDetailForSelection>(data.Id);

            entry.Dog     = SelectedDogRegistration;
            CurrentEntity = (entry as BreedEntry);
            CurrentEntity.MarkEntityAsClean();
        }