косметические правки

This commit is contained in:
Мк Игорь 2023-05-24 23:05:28 +04:00
parent 9717836063
commit c89af894b9
3 changed files with 9 additions and 3 deletions

View File

@ -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");

View File

@ -1,4 +1,7 @@
<form method="post">
@{
ViewData["Title"] = "Создание работы";
}
<form method="post">
<div hidden><input type="text" name="Id" /></div>
<div hidden><input type="text" name="WorkerId" value="@CurrentUser.UserId" /></div>
<div class="row">

View File

@ -1,4 +1,7 @@
<form method="post">
@{
ViewData["Title"] = "Редактирование работы";
}
<form method="post">
<div hidden><input type="text" name="Id" value="@ViewBag.Work.Id" /></div>
<div hidden><input type="text" name="WorkerId" value="@ViewBag.Work.WorkerId" /></div>
<div class="row">