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"] = "Редактирование работы"; +} +