Core.Inventory.DAL/Core.Inventory.Provider/ServiceCollectionExtensions.cs
Efra a706f96bd8 feat: Added Product controller and endpoints
- updated Core.Adapters.Lib package version
2025-08-03 17:50:20 -06:00

35 lines
1.3 KiB
C#

using Core.Adapters.Lib.Inventory;
using Core.Adapters.Lib;
using Core.Blueprint.Mongo;
using Core.Inventory.Provider.Contracts;
using Core.Inventory.Provider.Providers.Inventory;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace Core.Inventory.Provider
{
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddDALLayerServices(this IServiceCollection services, IConfiguration configuration)
{
services.AddScoped<IFurnitureBaseProvider, FurnitureBaseProvider>();
services.AddScoped<CollectionRepository<FurnitureBase>>();
services.AddScoped<IFurnitureVariantProvider, FurnitureVariantProvider>();
services.AddScoped<CollectionRepository<FurnitureVariant>>();
services.AddScoped<ITagTypeProvider, TagTypeProvider>();
services.AddScoped<CollectionRepository<TagTypeAdapter>>();
services.AddScoped<ITagProvider, TagProvider>();
services.AddScoped<CollectionRepository<TagAdapter>>();
services.AddScoped<IProductProvider, ProductProvider>();
services.AddScoped<CollectionRepository<ProductAdapter>>();
return services;
}
}
}