косметические правки
This commit is contained in:
parent
9717836063
commit
c89af894b9
@ -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");
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user