diff --git a/TravelCompany/TravelCompanyClientApp/Views/Home/Index.cshtml b/TravelCompany/TravelCompanyClientApp/Views/Home/Index.cshtml index d2d19bd..85544a2 100644 --- a/TravelCompany/TravelCompanyClientApp/Views/Home/Index.cshtml +++ b/TravelCompany/TravelCompanyClientApp/Views/Home/Index.cshtml @@ -1,8 +1,57 @@ -@{ - ViewData["Title"] = "Home Page"; +@using TravelCompanyContracts.ViewModels +@model List +@{ + ViewData["Title"] = "Home Page"; } -
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

+

Заказы

+
+ @{ + if (Model == null) + { +

Авторизируйтесь

+ return; + } +

+ Создать заказ +

+ + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + + } + +
НомерИзделиеДата созданияКоличествоСуммаСтатус
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.TravelName) + + @Html.DisplayFor(modelItem => item.DateCreate) + + @Html.DisplayFor(modelItem => item.Count) + + @Html.DisplayFor(modelItem => item.Sum) + + @Html.DisplayFor(modelItem => item.Status) +
+ } +
\ No newline at end of file