CSharp-Single-EFCore/Bunny.WebApi/Config/ServiceRegistration.cs

14 lines
402 B
C#

using Bunny.Service.IService;
using Bunny.Service.IService.Service;
using Bunny.WebApi.Controllers.Base;
namespace Bunny.WebApi.Config;
public static class ServiceRegistration
{
public static void AddApplicationServices(this WebApplicationBuilder builder)
{
builder.Services.AddScoped<TemplateController>();
builder.Services.AddScoped<IBaseService, BaseService>();
}
}