diff --git a/VetClinic/PharmacistApp/PharmacistApp.csproj b/VetClinic/PharmacistApp/PharmacistApp.csproj index 362488f..fbf47ba 100644 --- a/VetClinic/PharmacistApp/PharmacistApp.csproj +++ b/VetClinic/PharmacistApp/PharmacistApp.csproj @@ -7,6 +7,10 @@ + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/VetClinic/PharmacistApp/Program.cs b/VetClinic/PharmacistApp/Program.cs index 559dd3a..57900d3 100644 --- a/VetClinic/PharmacistApp/Program.cs +++ b/VetClinic/PharmacistApp/Program.cs @@ -1,3 +1,5 @@ +using PharmacistApp; + var builder = WebApplication.CreateBuilder(args); // Add services to the container. @@ -5,6 +7,7 @@ builder.Services.AddControllersWithViews(); var app = builder.Build(); +APIPharmacist.Connect(builder.Configuration); // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { diff --git a/VetClinic/PharmacistApp/Views/Home/Privacy.cshtml b/VetClinic/PharmacistApp/Views/Home/Privacy.cshtml index af4fb19..eb607de 100644 --- a/VetClinic/PharmacistApp/Views/Home/Privacy.cshtml +++ b/VetClinic/PharmacistApp/Views/Home/Privacy.cshtml @@ -1,6 +1,28 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

+@using VetClinicContracts.ViewModels -

Use this page to detail your site's privacy policy.

+@model PharmacistViewModel + +@{ + ViewData["Title"] = "Privacy Policy"; +} +
+

Личные данные

+
+
+
+
Email:
+
+
+
+
Пароль:
+
+
+
+
ФИО:
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml index 2b7c726..6a922ea 100644 --- a/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml +++ b/VetClinic/PharmacistApp/Views/Shared/_Layout.cshtml @@ -1,49 +1,53 @@  - - - @ViewData["Title"] - PharmacistApp - - - + + + @ViewData["Title"] - IceCreamShopClientApp + + + + -
- -
-
-
- @RenderBody() -
-
- - - - - - @await RenderSectionAsync("Scripts", required: false) +
+ +
+
+
+ @RenderBody() +
+
+ + + @RenderSection("Scripts", required: false) - + \ No newline at end of file diff --git a/VetClinic/VetClinicAdminApi/Views/Shared/_Layout.cshtml b/VetClinic/VetClinicAdminApi/Views/Shared/_Layout.cshtml index 060ea79..6a922ea 100644 --- a/VetClinic/VetClinicAdminApi/Views/Shared/_Layout.cshtml +++ b/VetClinic/VetClinicAdminApi/Views/Shared/_Layout.cshtml @@ -1,57 +1,53 @@  - - - @ViewData["Title"] - VetClinicAdminApp - - - + + + @ViewData["Title"] - IceCreamShopClientApp + + + + -
- -
-
-
- @RenderBody() -
-
- - - - - - @await RenderSectionAsync("Scripts", required: false) +
+ +
+
+
+ @RenderBody() +
+
+ + + @RenderSection("Scripts", required: false) - + \ No newline at end of file diff --git a/VetClinic/VetClinicRestApi/Controllers/PharmacistController.cs b/VetClinic/VetClinicRestApi/Controllers/PharmacistController.cs index 2c0c9e0..9d67176 100644 --- a/VetClinic/VetClinicRestApi/Controllers/PharmacistController.cs +++ b/VetClinic/VetClinicRestApi/Controllers/PharmacistController.cs @@ -20,13 +20,13 @@ namespace VetClinicRestApi.Controllers _logic = logic; } [HttpGet] - public PharmacistViewModel? Login(string login, string password) + public PharmacistViewModel? Login(string email, string password) { try { return _logic.ReadElement(new PharmacistSearchModel { - Email = login, + Email = email, Password = password }); }