コード例 #1
0
        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);
            }
        }
コード例 #2
0
 protected override async Task OnInitializedAsync()
 {
     Quize = await QuizeService.GetById(QuizeId);
 }
コード例 #3
0
ファイル: QuizeDetailBase.cs プロジェクト: jlamch/JoHoot
 protected override async Task OnInitializedAsync()
 {
     Quize = await QuizeService.GetById(Convert.ToInt64(QuizeId));
 }