| Destination Country | Visa Category | Request date | Days requested | Status |
|---|---|---|---|---|
| {application.DestinationCountry} | {application.VisaCategory.GetDisplayName()} | {application.RequestDate.ToString("d")} | {application.ValidDaysRequested} | {application.Status.GetDisplayName()} |
{problemDetailsException.Result.Detail!}
"; } else { - //ErrorHandler.Handle(e); - throw; + ErrorHandler.Handle(e); } } } diff --git a/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs b/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs index 2b4cb76..e011331 100644 --- a/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs +++ b/SchengenVisaApi/BlazorWebAssemblyVisaApiClient/Program.cs @@ -1,5 +1,6 @@ using System.Reflection; using BlazorWebAssemblyVisaApiClient.Infrastructure.Services.DateTimeProvider; +using BlazorWebAssemblyVisaApiClient.Infrastructure.Services.UserDataProvider; using FluentValidation; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; @@ -23,6 +24,7 @@ public class Program builder.Services.AddScoped