From 87774ff65fc23c937a8c659e0974a8888fffd04e Mon Sep 17 00:00:00 2001 From: malimova Date: Wed, 1 May 2024 16:40:29 +0400 Subject: [PATCH] =?UTF-8?q?=D1=88=D0=B0=D0=BC=D0=B0=D0=BD=D0=B8=D0=BC=20?= =?UTF-8?q?=D1=81=20=D1=80=D0=B5=D1=81=D1=82=D0=B0=D0=BF=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confectionery/ConfectioneryBusinessLogic/ClientLogic.cs | 3 ++- Confectionery/ConfectioneryRestApi/Program.cs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Confectionery/ConfectioneryBusinessLogic/ClientLogic.cs b/Confectionery/ConfectioneryBusinessLogic/ClientLogic.cs index 0af56eb..0ebb028 100644 --- a/Confectionery/ConfectioneryBusinessLogic/ClientLogic.cs +++ b/Confectionery/ConfectioneryBusinessLogic/ClientLogic.cs @@ -1,4 +1,5 @@ using ConfectioneryContracts.BindingModels; +using ConfectioneryContracts.BusinessLogicsContracts; using ConfectioneryContracts.SearchModels; using ConfectioneryContracts.StoragesContracts; using ConfectioneryContracts.ViewModels; @@ -11,7 +12,7 @@ using System.Threading.Tasks; namespace ConfectioneryBusinessLogic { - public class ClientLogic + public class ClientLogic : IClientLogic { private readonly ILogger _logger; private readonly IClientStorage _clientStorage; diff --git a/Confectionery/ConfectioneryRestApi/Program.cs b/Confectionery/ConfectioneryRestApi/Program.cs index 98b09e0..8e21fc4 100644 --- a/Confectionery/ConfectioneryRestApi/Program.cs +++ b/Confectionery/ConfectioneryRestApi/Program.cs @@ -3,9 +3,11 @@ using ConfectioneryContracts.BusinessLogicsContracts; using ConfectioneryContracts.StoragesContracts; using ConfectioneryDatabaseImplement.Implements; using Microsoft.OpenApi.Models; + var builder = WebApplication.CreateBuilder(args); builder.Logging.SetMinimumLevel(LogLevel.Trace); builder.Logging.AddLog4Net("log4net.config"); + // Add services to the container. builder.Services.AddTransient(); builder.Services.AddTransient(); @@ -14,6 +16,7 @@ builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddControllers(); + // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer();