protected override async Task OnInitializedAsync() { Logger.LogInformation($"Now loading... /SentinelEntry/{(IsEdit()?"Edit":"Create")}"); Title = IsEdit() ? "Bearbeiten" : "Neu anlegen"; PrimaryAction = IsEdit() ? "Speichern" : "Anlegen"; AllBreakpoints = await ClinicalBreakpointService.List().ConfigureAwait(true); if (Id.HasValue) { var response = await SentinelEntryService.GetById(Id.Value).ConfigureAwait(true); LaboratoryNumber = response.LaboratoryNumber; if (response.CryoDate.HasValue) { CryoBox = response.CryoBox; } SentinelEntry = response; } else { SentinelEntry = new SentinelEntryRequest(); } await base.OnInitializedAsync().ConfigureAwait(true); }
protected override async Task OnInitializedAsync() { Logger.LogInformation("Now loading... /SentinelEntries/Details/{Id}", Id); SentinelEntry = await SentinelEntryService.GetById(Id).ConfigureAwait(true); await base.OnInitializedAsync().ConfigureAwait(true); }
protected override async Task OnInitializedAsync() { Logger.LogInformation("Now loading... /Catalog/Delete/{Id}", Id); SentinelEntry = Mapper.Map <SentinelEntryRequest>(await SentinelEntryService.GetById(Id).ConfigureAwait(true)); await base.OnInitializedAsync().ConfigureAwait(true); }