You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
543 B

using Identity.Api.DDD.Contracts.Models;
using Microsoft.AspNetCore.Components;
namespace Identity.Api.Pages;
public partial class Error
{
[Parameter]
[SupplyParameterFromQuery]
public string ErrorId { get; set; }
public ErrorModel ErrorModel { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
ErrorModel = await Spa.GetErrorAsync(ErrorId);
StateHasChanged();
}
}
[Inject] SpaService Spa { get; set; }
}