From caefaf80680ee4053db108c7290d610dc25a1f1c Mon Sep 17 00:00:00 2001 From: antoc0der <1@DESKTOP-K1L8ND3> Date: Sun, 28 Apr 2024 19:16:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=81=D0=B5=20=D0=B8=D0=BE=D0=BA=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0=BD=D0=B5=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VeterinaryView/VeterinaryRestApi/Program.cs | 24 +++++++++++++++++++ .../VeterinaryRestApi/WeatherForecast.cs | 13 ---------- .../Views/Home/UpdateMedication.cshtml | 18 +++++++------- .../VeterinaryShowDoctorApp/appsettings.json | 2 +- 4 files changed, 34 insertions(+), 23 deletions(-) delete mode 100644 VeterinaryView/VeterinaryRestApi/WeatherForecast.cs diff --git a/VeterinaryView/VeterinaryRestApi/Program.cs b/VeterinaryView/VeterinaryRestApi/Program.cs index d7a851e..9dc04af 100644 --- a/VeterinaryView/VeterinaryRestApi/Program.cs +++ b/VeterinaryView/VeterinaryRestApi/Program.cs @@ -1,6 +1,30 @@ +using VeterinaryBusinessLogic.BusinessLogic; +using VeterinaryContracts.BusinessLogicContracts; +using VeterinaryContracts.StorageContracts; +using VeterinaryDatabaseImplement.Implements; +using Microsoft.OpenApi.Models; + var builder = WebApplication.CreateBuilder(args); // Add services to the container. +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); + + +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle diff --git a/VeterinaryView/VeterinaryRestApi/WeatherForecast.cs b/VeterinaryView/VeterinaryRestApi/WeatherForecast.cs deleted file mode 100644 index 4fb5494..0000000 --- a/VeterinaryView/VeterinaryRestApi/WeatherForecast.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace VeterinaryRestApi -{ - public class WeatherForecast - { - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } - } -} \ No newline at end of file diff --git a/VeterinaryView/VeterinaryShowDoctorApp/Views/Home/UpdateMedication.cshtml b/VeterinaryView/VeterinaryShowDoctorApp/Views/Home/UpdateMedication.cshtml index b389ecb..2485c8c 100644 --- a/VeterinaryView/VeterinaryShowDoctorApp/Views/Home/UpdateMedication.cshtml +++ b/VeterinaryView/VeterinaryShowDoctorApp/Views/Home/UpdateMedication.cshtml @@ -1,7 +1,7 @@ -@using VetClinicContracts.ViewModels; +@using VeterinaryContracts.ViewModels; @{ - ViewData["Title"] = "UpdateMedicine"; + ViewData["Title"] = "UpdateMedication"; }
@@ -11,7 +11,7 @@
Медикамент:
- +
@@ -47,14 +47,14 @@ { diff --git a/VeterinaryView/VeterinaryShowDoctorApp/appsettings.json b/VeterinaryView/VeterinaryShowDoctorApp/appsettings.json index a47a897..80fc5d6 100644 --- a/VeterinaryView/VeterinaryShowDoctorApp/appsettings.json +++ b/VeterinaryView/VeterinaryShowDoctorApp/appsettings.json @@ -6,5 +6,5 @@ } }, "AllowedHosts": "*", - "IPAddress": "http://localhost:5025/" + "IPAddress": "http://localhost:5156/" }