Доработка
This commit is contained in:
parent
a5ebf1c7ad
commit
2b59f88981
@ -68,6 +68,8 @@ namespace SchoolAgainStudyDataBaseImplements.Models
|
||||
public void Update(DiyBindingModel model)
|
||||
{
|
||||
Title = model.Title;
|
||||
TaskId = model.TaskId;
|
||||
TaskName = model.TaskName;
|
||||
Description = model.Description;
|
||||
DateCreate = model.DateCreate;
|
||||
}
|
||||
|
@ -66,6 +66,8 @@ namespace SchoolAgainStudyDataBaseImplements.Models
|
||||
public void Update(LessonBindingModel model)
|
||||
{
|
||||
Title = model.Title;
|
||||
ProductId = model.ProductId;
|
||||
ProductName = model.ProductName;
|
||||
DateEvent = model.DateEvent;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div class="row">
|
||||
<div class="col-4">Задание:</div>
|
||||
<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 class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user