Доработка

This commit is contained in:
Володя 2023-05-18 23:05:58 +03:00
parent a5ebf1c7ad
commit 2b59f88981
3 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,8 @@ namespace SchoolAgainStudyDataBaseImplements.Models
public void Update(DiyBindingModel model) public void Update(DiyBindingModel model)
{ {
Title = model.Title; Title = model.Title;
TaskId = model.TaskId;
TaskName = model.TaskName;
Description = model.Description; Description = model.Description;
DateCreate = model.DateCreate; DateCreate = model.DateCreate;
} }

View File

@ -66,6 +66,8 @@ namespace SchoolAgainStudyDataBaseImplements.Models
public void Update(LessonBindingModel model) public void Update(LessonBindingModel model)
{ {
Title = model.Title; Title = model.Title;
ProductId = model.ProductId;
ProductName = model.ProductName;
DateEvent = model.DateEvent; DateEvent = model.DateEvent;
} }

View File

@ -28,7 +28,7 @@
<div class="row"> <div class="row">
<div class="col-4">Задание:</div> <div class="col-4">Задание:</div>
<div class="col-8"> <div class="col-8">
<select id="task" name="task" class="form-control" asp-items="@(new SelectList(@ViewBag.Tasks,"Id", "Title"))"></select> <select id="task" name="task" class="form-control" asp-items="@(new SelectList(@ViewBag.Tasks,"Id", "Title", Model.TaskId))"></select>
</div> </div>
</div> </div>
<div class="row"> <div class="row">