Skip to content
Snippets Groups Projects
Commit 800a8a42 authored by snemeckayova's avatar snemeckayova
Browse files

Add services in Program.cs

parent dddf9f84
No related branches found
No related tags found
2 merge requests!46Milestone-2,!29IssueEventService, EventCommentService, EventParticipantService Implementation
Pipeline #
...@@ -7,6 +7,9 @@ using Microsoft.EntityFrameworkCore; ...@@ -7,6 +7,9 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.OpenApi.Models; using Microsoft.OpenApi.Models;
using Elastic.Extensions.Logging; using Elastic.Extensions.Logging;
using Elastic.Extensions.Logging.Options; using Elastic.Extensions.Logging.Options;
using BusinessLayer.Services.EventCommentService;
using BusinessLayer.Services.EventParticipantService;
using BusinessLayer.Services.EventService;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
...@@ -23,6 +26,10 @@ builder.Services.AddDbContextFactory<RestaurantDBContext>(options => ...@@ -23,6 +26,10 @@ builder.Services.AddDbContextFactory<RestaurantDBContext>(options =>
builder.Configuration.GetConnectionString("MSSQL")) 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<IReviewService, ReviewService>();
builder.Services.AddScoped<IReviewAggregateResultService, ReviewAggregateResultService>(); builder.Services.AddScoped<IReviewAggregateResultService, ReviewAggregateResultService>();
builder.Services.AddScoped<IReviewCommentService, ReviewCommentService>(); builder.Services.AddScoped<IReviewCommentService, ReviewCommentService>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment