From 8c5075d52fcd57966199498e3b13e714cdab1299 Mon Sep 17 00:00:00 2001 From: ksenianeva <95441235+ksenianeva@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:16:10 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=205.=20=D0=A4=D0=B8=D0=BA=D1=81?= =?UTF-8?q?=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20Index.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/Index.cshtml | 59 +++++++++++++++++-- 1 file changed, 54 insertions(+), 5 deletions(-) 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