@ -22,7 +22,7 @@ builder.Services
builder.Services.AddBlazoredLocalStorage();
builder.Services.AddScoped<IDataService, DataLocalServices>();
builder.Services.AddScoped<IDataService, DataLocalService>();
var app = builder.Build();
@ -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;
@ -1,4 +1,5 @@
using System;
using BlazorTp1.Models;
using System;
public interface IDataService