From 7ea4b12dadbf18e9c340e5d2b89f6cd8562c5a20 Mon Sep 17 00:00:00 2001 From: Allllen4a Date: Sun, 2 Jun 2024 12:29:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=81=D0=BD=D1=8F,=20=D0=BA=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=B9=20=D0=BD=D0=B5=20=D1=81=D0=BF?= =?UTF-8?q?=D0=B5=D1=82=D1=8C,=20=D1=81=D0=BF=D0=B8=D1=82=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B3=D1=83=D0=B1=D0=B0=D1=85=20=D0=BC=D0=BE=D0=B8=D1=85=20?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D1=81=D1=82=D0=BD=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Где-то в саду захолустном первый светляк золотится, в речке луна струится, как золотая сеть. И песня тогда мне снится, которую мне не спеть. Песня задумчивых губ и затуманенной влаги, Песня забытых минут, что затерялись во мраке. Песня звезды кочевой над незакатной зарей. --- .../Controllers/HomeController.cs | 81 ------------------- .../ClientWebApp/Views/Shared/_Layout.cshtml | 2 +- 2 files changed, 1 insertion(+), 82 deletions(-) diff --git a/BeautySalonView/ClientWebApp/Controllers/HomeController.cs b/BeautySalonView/ClientWebApp/Controllers/HomeController.cs index 63a9605..dfad42b 100644 --- a/BeautySalonView/ClientWebApp/Controllers/HomeController.cs +++ b/BeautySalonView/ClientWebApp/Controllers/HomeController.cs @@ -297,86 +297,5 @@ namespace WorkerWebApp.Controllers return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } } - /* - - - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, - NoStore = true)] - public IActionResult Error() - { - return View(new ErrorViewModel - { - RequestId = - Activity.Current?.Id ?? HttpContext.TraceIdentifier - }); - } - [HttpGet] - public IActionResult Enter() //че бомбишь - { - return View(); - } - [HttpPost] - public void Enter(string login, string password) - { - if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password)) - { - throw new Exception("Введите логин и пароль"); - } - APIWorker.Worker = APIWorker.GetRequest($"api/workercontroller/login?login={login}&password={password}"); - if (APIWorker.Worker == null) - { - throw new Exception("Неверный логин/пароль"); - } - Response.Redirect("Index"); - } - - [HttpGet] - public IActionResult Register() - { - return View(); - } - [HttpPost] - public void Register(string login, string password, string fio) - { - if (string.IsNullOrEmpty(login) || - string.IsNullOrEmpty(password) || string.IsNullOrEmpty(fio)) - { - throw new Exception("Введите логин, пароль и ФИО"); - } - APIWorker.PostRequest("api/worker/register", new - WorkerBindingModel - { - FullName = fio, - Email = login, - Password = password - }); - Response.Redirect("Enter"); - return; - } - [HttpGet] - public IActionResult Orders() - { - return View(new List()); - } - [HttpGet] - public IActionResult Procedures() - { - return View(new List()); - } - [HttpGet] - public IActionResult Evaluations() - { - return View(new List()); - } - [HttpGet] - public IActionResult Report() - { - return View(new List()); //вот тут вопрос - } - public IActionResult OrderList() - { - return View(new List()); //тут тоже вопрос - } - }*/ } \ No newline at end of file diff --git a/BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml b/BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml index 625ca25..769140a 100644 --- a/BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml +++ b/BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml @@ -41,7 +41,7 @@ Оценки