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/" }