From c89af894b924381cdc2bf9deae4034baa030a06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BA=20=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Wed, 24 May 2023 23:05:28 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarServiceBusinessLogic/BusinessLogics/WorkLogic.cs | 2 +- CarService/CarServiceWebApp/Views/Home/CreateWork.cshtml | 5 ++++- CarService/CarServiceWebApp/Views/Home/Work.cshtml | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CarService/CarServiceBusinessLogic/BusinessLogics/WorkLogic.cs b/CarService/CarServiceBusinessLogic/BusinessLogics/WorkLogic.cs index dba68ac..eac87de 100644 --- a/CarService/CarServiceBusinessLogic/BusinessLogics/WorkLogic.cs +++ b/CarService/CarServiceBusinessLogic/BusinessLogics/WorkLogic.cs @@ -56,7 +56,7 @@ namespace CarServiceBusinessLogic.BusinessLogics } public bool Update(WorkBindingModel model) { - CheckModel(model); + CheckModel(model, false); if (_workStorage.Update(model) == null) { _logger.LogWarning("Update operation failed"); diff --git a/CarService/CarServiceWebApp/Views/Home/CreateWork.cshtml b/CarService/CarServiceWebApp/Views/Home/CreateWork.cshtml index 7b30578..ac5f030 100644 --- a/CarService/CarServiceWebApp/Views/Home/CreateWork.cshtml +++ b/CarService/CarServiceWebApp/Views/Home/CreateWork.cshtml @@ -1,4 +1,7 @@ -
+@{ + ViewData["Title"] = "Создание работы"; +} +
diff --git a/CarService/CarServiceWebApp/Views/Home/Work.cshtml b/CarService/CarServiceWebApp/Views/Home/Work.cshtml index 4973cf6..ea93757 100644 --- a/CarService/CarServiceWebApp/Views/Home/Work.cshtml +++ b/CarService/CarServiceWebApp/Views/Home/Work.cshtml @@ -1,4 +1,7 @@ - +@{ + ViewData["Title"] = "Редактирование работы"; +} +