diff --git a/BlazorTp1/Program.cs b/BlazorTp1/Program.cs index 99989cb..a4adb86 100644 --- a/BlazorTp1/Program.cs +++ b/BlazorTp1/Program.cs @@ -22,7 +22,7 @@ builder.Services builder.Services.AddBlazoredLocalStorage(); -builder.Services.AddScoped(); +builder.Services.AddScoped(); var app = builder.Build(); diff --git a/BlazorTp1/Services/DataLocalService.cs b/BlazorTp1/Services/DataLocalService.cs index 0fc6b16..ecde1df 100644 --- a/BlazorTp1/Services/DataLocalService.cs +++ b/BlazorTp1/Services/DataLocalService.cs @@ -1,4 +1,8 @@ -public class DataLocalService : IDataService +using Blazored.LocalStorage; +using BlazorTp1.Models; +using Microsoft.AspNetCore.Components; + +public class DataLocalService : IDataService { private readonly HttpClient _http; private readonly ILocalStorageService _localStorage; diff --git a/BlazorTp1/Services/IDataService.cs b/BlazorTp1/Services/IDataService.cs index a49c3c5..1b5ac23 100644 --- a/BlazorTp1/Services/IDataService.cs +++ b/BlazorTp1/Services/IDataService.cs @@ -1,4 +1,5 @@ -using System; +using BlazorTp1.Models; +using System; public interface IDataService {