protected override async Task OnInitializedAsync() { int.TryParse(QuizeId, out var quizeId); if (quizeId == 0) //new Quize is being created { //add some defaults Quize = new QuizeViewModel { Id = 0 }; } else { Quize = await QuizeService.GetById(quizeId); } }
protected override async Task OnInitializedAsync() { Quize = await QuizeService.GetById(QuizeId); }
protected override async Task OnInitializedAsync() { Quize = await QuizeService.GetById(Convert.ToInt64(QuizeId)); }