This commit is contained in:
mmrbnjd
2024-04-30 16:40:05 +03:30
parent 319270d567
commit 827aa36860
8 changed files with 258 additions and 8 deletions

View File

@@ -14,7 +14,23 @@ builder.Services.AddBlazorBootstrap();
builder.Services.AddScoped<ILocalStorageService, LocalStorageService>();
builder.Services.AddScoped<localService>();
builder.Services.AddScoped<HttpClientController>();
builder.Services.AddScoped(sp => new UserAuthenticationDTO());
builder.Services.AddScoped(sp => new UserAuthenticationDTO()
{
Company = new CompanyAuthenticationDTO()
{
ID = 0,
IsAdmin = false,
Logo = "",
Name = ""
}
,
FullName = "",
Photo="",
Token="",
UserName = "",
enterDate =new DateTime(),
exitDate = new DateTime(),
}) ;
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });