From a6d1e275fe12ff65b176fb517f119d3e22816e1c Mon Sep 17 00:00:00 2001 From: runtenick Date: Sat, 12 Nov 2022 10:16:16 +0100 Subject: [PATCH] fixed missing headers --- BlazorTp1/Program.cs | 2 +- BlazorTp1/Services/DataLocalService.cs | 6 +++++- BlazorTp1/Services/IDataService.cs | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) 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 {