@if (this.User.IsInRole("Admin")) { - Create car + Add new car }
| - @Html.DisplayNameFor(model => model.Id) + ID | @Html.DisplayNameFor(model => model.Brand) @@ -28,16 +27,16 @@ @Html.DisplayNameFor(model => model.Year) | - @Html.DisplayNameFor(model => model.CountPassengerSeats) + Seats | @Html.DisplayNameFor(model => model.Description) | - @Html.DisplayNameFor(model => model.PriceForDay) + Daily price | - Select + Actions | @Html.DisplayFor(modelItem => item.PriceForDay) | -- Select - | @if (this.User.IsInRole("Admin")) {
diff --git a/RentACar/WebApp/Views/Home/Index.cshtml b/RentACar/WebApp/Views/Home/Index.cshtml
index 61c3e83..2b4d8b1 100644
--- a/RentACar/WebApp/Views/Home/Index.cshtml
+++ b/RentACar/WebApp/Views/Home/Index.cshtml
@@ -3,5 +3,11 @@
}
-
diff --git a/RentACar/WebApp/Views/Home/Privacy.cshtml b/RentACar/WebApp/Views/Home/Privacy.cshtml
deleted file mode 100644
index af4fb19..0000000
--- a/RentACar/WebApp/Views/Home/Privacy.cshtml
+++ /dev/null
@@ -1,6 +0,0 @@
-@{
- ViewData["Title"] = "Privacy Policy";
-}
-Welcome+Welcome, @User.Identity.Name++ Manage cars + @if (this.User.IsInRole("Admin")) + { + Manage rents + } @ViewData["Title"]- -Use this page to detail your site's privacy policy. diff --git a/RentACar/WebApp/Views/Rents/Create.cshtml b/RentACar/WebApp/Views/Rents/Create.cshtml index 49e13ea..0e221a3 100644 --- a/RentACar/WebApp/Views/Rents/Create.cshtml +++ b/RentACar/WebApp/Views/Rents/Create.cshtml @@ -4,19 +4,17 @@ ViewData["Title"] = "Create"; } -Create- -Rents+Create rent |
|---|