using Microsoft.Extensions.DependencyInjection;
using MuiCharts.Domain.Repositories;
using MuiCharts.Infrastructure.Repositories;
namespace MuiCharts.Infrastructure;
///
/// Provides extension methods for configuring infrastructure services.
///
public static class InfrastructrureExtensions
{
///
/// Adds infrastructure services to the specified .
///
/// The to add the services to.
/// The modified .
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
{
services.AddDbContext();
services.AddScoped();
services.AddScoped();
return services;
}
}