21 lines
577 B
C#
21 lines
577 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using ECommerceModule.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace ECommerceModule.Config
|
|
{
|
|
public static class RegisterServices
|
|
{
|
|
public static IServiceCollection ECommerceModuleServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<ShopStateService>();
|
|
services.AddScoped<ProductAPIConsumer>();
|
|
services.AddScoped<CategoryAPIConsumer>();
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |