From 800a8a4253789ab3486aa0ca6b1ee26bf83001c6 Mon Sep 17 00:00:00 2001
From: snemeckayova <514641@mail.muni.cz>
Date: Tue, 5 Nov 2024 17:36:23 +0100
Subject: [PATCH] Add services in Program.cs

---
 Api/Program.cs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Api/Program.cs b/Api/Program.cs
index 533a2c6..57b18c7 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>();
-- 
GitLab