22 lines
477 B
C#
Executable File
22 lines
477 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Commerce.Core.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace Commerce.Config;
|
|
|
|
public static class RegisteringServices
|
|
{
|
|
public static IServiceCollection RegisterServices(this IServiceCollection services)
|
|
{
|
|
//test
|
|
|
|
services.AddScoped<ProductService>();
|
|
services.AddScoped<CategoryService>();
|
|
|
|
return services;
|
|
}
|
|
}
|