nice refactorings

This commit is contained in:
2022-10-10 03:17:14 +03:00
parent 4ca234aec8
commit 28a6981001
30 changed files with 622 additions and 141 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
using Hellang.Middleware.ProblemDetails;
using Microsoft.AspNetCore.Hosting;
using PracticeCalendar.Application;
using PracticeCalendar.Infrastructure;
using PracticeCalendar.Infrastructure.Persistence;
using System;
@@ -16,14 +17,18 @@ namespace PracticeCalendar
builder.Services.AddProblemDetails();
builder.Services.AddAutoMapper(typeof(Program));
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
//inject application
builder.Services.AddApplicationServices();
//inject infrastructure
builder.Services.AddInfrastructure(builder.Configuration);
builder.Services.AddInfrastructureServices(builder.Configuration);
//mapster
var app = builder.Build();