+ @if (!_loaded)
+ {
+
+ }
+ else if (_accountData is null)
+ {
+
+ }
+ else
+ {
+
+ }
+
\ No newline at end of file
diff --git a/WatchIt.Website/WatchIt.Website/Pages/UserPage.razor.cs b/WatchIt.Website/WatchIt.Website/Pages/UserPage.razor.cs
index 3af1678..7685fa6 100644
--- a/WatchIt.Website/WatchIt.Website/Pages/UserPage.razor.cs
+++ b/WatchIt.Website/WatchIt.Website/Pages/UserPage.razor.cs
@@ -1,7 +1,87 @@
using Microsoft.AspNetCore.Components;
+using WatchIt.Common.Model.Accounts;
+using WatchIt.Website.Layout;
+using WatchIt.Website.Services.Authentication;
+using WatchIt.Website.Services.Client.Accounts;
namespace WatchIt.Website.Pages;
public partial class UserPage : ComponentBase
{
+ #region SERVICES
+
+ [Inject] private NavigationManager NavigationManager { get; set; } = default!;
+ [Inject] private IAuthenticationService AuthenticationService { get; set; } = default!;
+ [Inject] private IAccountsClientService AccountsClientService { get; set; } = default!;
+
+ #endregion
+
+
+
+ #region PARAMETERS
+
+ [Parameter] public long? Id { get; set; }
+
+ [CascadingParameter] public MainLayout Layout { get; set; } = default!;
+
+ #endregion
+
+
+
+ #region FIELDS
+
+ private bool _loaded;
+ private bool _redirection;
+ private bool _owner;
+ private AccountResponse? _accountData;
+
+ #endregion
+
+
+
+ #region PRIVATE METHODS
+
+ protected override async Task OnAfterRenderAsync(bool firstRender)
+ {
+ if (firstRender)
+ {
+ List