diff --git a/AsyncInn.Web/AsyncInn.Web.csproj b/AsyncInn.Web/AsyncInn.Web.csproj index 2ccf178..3885575 100644 --- a/AsyncInn.Web/AsyncInn.Web.csproj +++ b/AsyncInn.Web/AsyncInn.Web.csproj @@ -8,4 +8,12 @@ + + + + + + + + diff --git a/AsyncInn.Web/Controllers/HomeController.cs b/AsyncInn.Web/Controllers/HomeController.cs index 8a372eb..5d39c74 100644 --- a/AsyncInn.Web/Controllers/HomeController.cs +++ b/AsyncInn.Web/Controllers/HomeController.cs @@ -24,7 +24,7 @@ public IActionResult Index() return View(); } - public IActionResult Privacy() + public IActionResult About() { return View(); } diff --git a/AsyncInn.Web/Controllers/HotelsController.cs b/AsyncInn.Web/Controllers/HotelController.cs similarity index 96% rename from AsyncInn.Web/Controllers/HotelsController.cs rename to AsyncInn.Web/Controllers/HotelController.cs index 4259b94..87ee22a 100644 --- a/AsyncInn.Web/Controllers/HotelsController.cs +++ b/AsyncInn.Web/Controllers/HotelController.cs @@ -9,11 +9,11 @@ namespace AsyncInn.Web.Controllers { - public class HotelsController : Controller + public class HotelController : Controller { IHotelService hotelService; - public HotelsController(IHotelService hotelService) + public HotelController(IHotelService hotelService) { this.hotelService = hotelService; } diff --git a/AsyncInn.Web/Startup.cs b/AsyncInn.Web/Startup.cs index 89a3664..faa0428 100644 --- a/AsyncInn.Web/Startup.cs +++ b/AsyncInn.Web/Startup.cs @@ -44,7 +44,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) else { app.UseExceptionHandler("/Home/Error"); - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); diff --git a/AsyncInn.Web/Views/Home/About.cshtml b/AsyncInn.Web/Views/Home/About.cshtml new file mode 100644 index 0000000..8cb8e69 --- /dev/null +++ b/AsyncInn.Web/Views/Home/About.cshtml @@ -0,0 +1,19 @@ +@{ + ViewData["Title"] = "About"; + Layout = "_Layout"; +} +

@ViewData["Title"]

+ +
+
+
+
Marie Antons
+
Junior Developer at STRATAFOLIO
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ +
+
+
diff --git a/AsyncInn.Web/Views/Home/Index.cshtml b/AsyncInn.Web/Views/Home/Index.cshtml index deb393a..bd1c6b8 100644 --- a/AsyncInn.Web/Views/Home/Index.cshtml +++ b/AsyncInn.Web/Views/Home/Index.cshtml @@ -1,12 +1,49 @@ @{ ViewData["Title"] = "Home Page"; + Layout = "_Layout"; } -
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

-
-@section Header { -

This is from a section!

-} + + + + +
+ + Async Inn + + + + + + @*
+ +
+
+
+ +
+
+ +
+
*@ + + + +
+ + diff --git a/AsyncInn.Web/Views/Home/Privacy.cshtml b/AsyncInn.Web/Views/Home/Privacy.cshtml deleted file mode 100644 index af4fb19..0000000 --- a/AsyncInn.Web/Views/Home/Privacy.cshtml +++ /dev/null @@ -1,6 +0,0 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

- -

Use this page to detail your site's privacy policy.

diff --git a/AsyncInn.Web/Views/Hotels/Create.cshtml b/AsyncInn.Web/Views/Hotels/Create.cshtml deleted file mode 100644 index 3250618..0000000 --- a/AsyncInn.Web/Views/Hotels/Create.cshtml +++ /dev/null @@ -1,54 +0,0 @@ -@model AsyncInn.Web.Models.Hotel - -@{ - ViewData["Title"] = "Create"; -} - -

Create

- -

Hotel

-
-
-
-
-
- -
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- -
-
-
-
- -
- Back to List -
- -@section Scripts { - @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} -} diff --git a/AsyncInn.Web/Views/Hotels/Delete.cshtml b/AsyncInn.Web/Views/Hotels/Delete.cshtml deleted file mode 100644 index a44de12..0000000 --- a/AsyncInn.Web/Views/Hotels/Delete.cshtml +++ /dev/null @@ -1,56 +0,0 @@ -@model AsyncInn.Web.Models.Hotel - -@{ - ViewData["Title"] = "Delete"; -} - -

Delete

- -

Are you sure you want to delete this?

-
-

Hotel

-
-
-
- @Html.DisplayNameFor(model => model.Id) -
-
- @Html.DisplayFor(model => model.Id) -
-
- @Html.DisplayNameFor(model => model.HotelName) -
-
- @Html.DisplayFor(model => model.HotelName) -
-
- @Html.DisplayNameFor(model => model.StreetAddress) -
-
- @Html.DisplayFor(model => model.StreetAddress) -
-
- @Html.DisplayNameFor(model => model.City) -
-
- @Html.DisplayFor(model => model.City) -
-
- @Html.DisplayNameFor(model => model.State) -
-
- @Html.DisplayFor(model => model.State) -
-
- @Html.DisplayNameFor(model => model.Country) -
-
- @Html.DisplayFor(model => model.Country) -
-
- -
- | - Back to List -
-
diff --git a/AsyncInn.Web/Views/Hotels/Details.cshtml b/AsyncInn.Web/Views/Hotels/Details.cshtml deleted file mode 100644 index 633eb6b..0000000 --- a/AsyncInn.Web/Views/Hotels/Details.cshtml +++ /dev/null @@ -1,54 +0,0 @@ -@model AsyncInn.Web.Models.Hotel - -@{ - ViewData["Title"] = "Detail"; -} - -

Detail

- -
-

Hotel

-
-
-
- @Html.DisplayNameFor(model => model.Id) -
-
- @Html.DisplayFor(model => model.Id) -
-
- @Html.DisplayNameFor(model => model.HotelName) -
-
- @Html.DisplayFor(model => model.HotelName) -
-
- @Html.DisplayNameFor(model => model.StreetAddress) -
-
- @Html.DisplayFor(model => model.StreetAddress) -
-
- @Html.DisplayNameFor(model => model.City) -
-
- @Html.DisplayFor(model => model.City) -
-
- @Html.DisplayNameFor(model => model.State) -
-
- @Html.DisplayFor(model => model.State) -
-
- @Html.DisplayNameFor(model => model.Country) -
-
- @Html.DisplayFor(model => model.Country) -
-
-
-
- @Html.ActionLink("Edit", "Edit", new { Model.Id }) | - Back to List -
diff --git a/AsyncInn.Web/Views/Hotels/Edit.cshtml b/AsyncInn.Web/Views/Hotels/Edit.cshtml deleted file mode 100644 index 813157d..0000000 --- a/AsyncInn.Web/Views/Hotels/Edit.cshtml +++ /dev/null @@ -1,55 +0,0 @@ -@model AsyncInn.Web.Models.Hotel - -@{ - ViewData["Title"] = "Update"; -} - -

Update

- -

Hotel

-
-
-
- -
-
- -
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- -
-
-
-
- -
- Back to List -
- -@section Scripts { - @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} -} diff --git a/AsyncInn.Web/Views/Hotels/Index.cshtml b/AsyncInn.Web/Views/Hotels/Index.cshtml deleted file mode 100644 index 9197c53..0000000 --- a/AsyncInn.Web/Views/Hotels/Index.cshtml +++ /dev/null @@ -1,65 +0,0 @@ -@model IEnumerable - -@{ - ViewData["Title"] = "Index"; -} - -

Index

- -

- Create New -

- - - - - - - - - - - - - -@foreach (var item in Model) { - - - - - - - - - -} - -
- @Html.DisplayNameFor(model => model.Id) - - @Html.DisplayNameFor(model => model.HotelName) - - @Html.DisplayNameFor(model => model.StreetAddress) - - @Html.DisplayNameFor(model => model.City) - - @Html.DisplayNameFor(model => model.State) - - @Html.DisplayNameFor(model => model.Country) -
- @Html.DisplayFor(modelItem => item.Id) - - @Html.DisplayFor(modelItem => item.HotelName) - - @Html.DisplayFor(modelItem => item.StreetAddress) - - @Html.DisplayFor(modelItem => item.City) - - @Html.DisplayFor(modelItem => item.State) - - @Html.DisplayFor(modelItem => item.Country) - - @Html.ActionLink("Edit", "Edit", new { item.Id }) | - @Html.ActionLink("Details", "Details", new { item.Id }) | - @Html.ActionLink("Delete", "Delete", new { item.Id }) -
diff --git a/AsyncInn.Web/Views/Shared/_Layout.cshtml b/AsyncInn.Web/Views/Shared/_Layout.cshtml index 89e3e68..a286cdb 100644 --- a/AsyncInn.Web/Views/Shared/_Layout.cshtml +++ b/AsyncInn.Web/Views/Shared/_Layout.cshtml @@ -3,15 +3,18 @@ - @ViewData["Title"] - AsyncInn.Web + + + + +