diff --git a/Api/Program.cs b/Api/Program.cs index 533a2c658ee090cf3c9b500c1733e70765760f0f..57b18c7564d02758352d78d6096355738f70ec04 100644 --- a/Api/Program.cs +++ b/Api/Program.cs @@ -7,6 +7,9 @@ using Microsoft.EntityFrameworkCore; using Microsoft.OpenApi.Models; using Elastic.Extensions.Logging; using Elastic.Extensions.Logging.Options; +using BusinessLayer.Services.EventCommentService; +using BusinessLayer.Services.EventParticipantService; +using BusinessLayer.Services.EventService; var builder = WebApplication.CreateBuilder(args); @@ -23,6 +26,10 @@ builder.Services.AddDbContextFactory<RestaurantDBContext>(options => builder.Configuration.GetConnectionString("MSSQL")) ); +builder.Services.AddScoped<IEventService, EventService>(); +builder.Services.AddScoped<IEventCommentService, EventCommentService>(); +builder.Services.AddScoped<IEventParticipantService, EventParticipantService>(); + builder.Services.AddScoped<IReviewService, ReviewService>(); builder.Services.AddScoped<IReviewAggregateResultService, ReviewAggregateResultService>(); builder.Services.AddScoped<IReviewCommentService, ReviewCommentService>();