

<MudPaper Class="pa-10 ma-5">
	<MudText Typo="Typo.h1"> @user.Username</MudText>
	<MudText Typo="Typo.h6"> Role :@user.Role</MudText>
	<MudText Typo="Typo.h6"> Email : @user.Email</MudText>

</MudPaper>

@code {

	[Inject]
	IUserService userService { get; set; }

	[Parameter]
	public int UserId { get; set; } = 0;

	private User user = new User();

	protected override async Task OnInitializedAsync()
	{
		var result = await userService.GetByIDAsync((uint)UserId);
		if (result.Successed)
		{
			user = result.Data;
		}
		else
		{

		}
	}

}
