diff --git a/RentACar/WebApp/Views/Rents/Index.cshtml b/RentACar/WebApp/Views/Rents/Index.cshtml
index ed6e53f..4a0a2af 100644
--- a/RentACar/WebApp/Views/Rents/Index.cshtml
+++ b/RentACar/WebApp/Views/Rents/Index.cshtml
@@ -15,16 +15,16 @@
|
- Car ID
+ @Html.DisplayNameFor(model => model.Car.Id)
|
- Start Date
+ @Html.DisplayNameFor(model => model.StartDate)
|
- End Date
+ @Html.DisplayNameFor(model => model.EndDate)
|
- User
+ @Html.DisplayNameFor(model => model.User.UserName)
|
@if (this.User.IsInRole("Admin"))
{
@@ -37,28 +37,28 @@
@foreach (var item in Model)
{
-
- |
- @Html.DisplayFor(modelItem => item.Car.Id)
- |
-
- @Html.DisplayFor(modelItem => item.StartDate)
- |
-
- @Html.DisplayFor(modelItem => item.EndDate)
- |
-
- @Html.DisplayFor(modelItem => item.User.UserName)
- |
- @if (this.User.IsInRole("Admin"))
- {
+
|
- Edit |
- Details |
- Delete
+ @Html.DisplayFor(modelItem => item.Car.Id)
|
- }
-
+
+ @Html.DisplayFor(modelItem => item.StartDate)
+ |
+
+ @Html.DisplayFor(modelItem => item.EndDate)
+ |
+
+ @Html.DisplayFor(modelItem => item.User.UserName)
+ |
+ @if (this.User.IsInRole("Admin"))
+ {
+
+ Edit |
+ Details |
+ Delete
+ |
+ }
+
}
diff --git a/RentACar/WebApp/Views/Users/Index.cshtml b/RentACar/WebApp/Views/Users/Index.cshtml
index d13fc95..28f3dfb 100644
--- a/RentACar/WebApp/Views/Users/Index.cshtml
+++ b/RentACar/WebApp/Views/Users/Index.cshtml
@@ -13,22 +13,22 @@
|
- First name
+ @Html.DisplayNameFor(model => model.FirstName)
|
- Last name
+ @Html.DisplayNameFor(model => model.LastName)
|
- ID number
+ @Html.DisplayNameFor(model => model.PersonalNumber)
|
- Username
+ @Html.DisplayNameFor(model => model.UserName)
|
- E-mail
+ @Html.DisplayNameFor(model => model.Email)
|
- Phone number
+ @Html.DisplayNameFor(model => model.PhoneNumber)
|
Actions
|