ticket-system/source/ticketAPI/api/IServiceCollectionExtensions.cs
2024-12-05 16:47:23 -05:00

15 lines
437 B
C#

using api.Interfaces;
using api.Services;
namespace api;
public static class ServiceCollectionExtensions
{
public static void AddServices(this IServiceCollection services)
{
services.AddScoped<IQrCodeGenerator, QrCodeGenerator>();
services.AddScoped<ITicketManager, TicketManager>();
services.AddScoped<IEventManager, EventManager>();
services.AddScoped<ISeasonManager, SeasonManager>();
}
}