add some better view configuration
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.vs/slnx.sqlite
BIN
.vs/slnx.sqlite
Binary file not shown.
@@ -38,7 +38,16 @@
|
||||
},
|
||||
new Pie
|
||||
{
|
||||
PieId = 3
|
||||
PieId = 3,
|
||||
Name = "Rhubarb Pie",
|
||||
Price = 15.95M,
|
||||
ShortDescription = "Lorem Ipsum",
|
||||
LongDescription = "Lorem Ipsum",
|
||||
Category = _categoryRepository.AllCategories.ToList()[0],
|
||||
ImageUrl = "https://gillcleerenpluralsight.blob.core.windows.net/files/rhubarbpie.jpg",
|
||||
InStock = true,
|
||||
IsPieOfTheWeek = false,
|
||||
ImageThumbnailUrl = "https://gillcleerenpluralsight.blob.core.windows.net/files/rhubarbpiesmall.jpg"
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,22 +1,11 @@
|
||||
@model FakePieShop.Models.ViewModels.PieListViewModel
|
||||
@model PieListViewModel
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>List</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>@Model.CurrentCategory</h1>
|
||||
@foreach (var pie in Model.Pies)
|
||||
{
|
||||
<div>
|
||||
<h2>@pie.Name</h2>
|
||||
<p>@pie.Price.ToString("c")</p>
|
||||
<p>@pie.Category</p>
|
||||
</div>
|
||||
}
|
||||
</body>
|
||||
</html>
|
||||
<h1>@Model.CurrentCategory</h1>
|
||||
@foreach (var pie in Model.Pies)
|
||||
{
|
||||
<div>
|
||||
<h2>@pie.Name</h2>
|
||||
<p>@pie.Price.ToString("c")</p>
|
||||
<p>@pie.Category.CategoryName</p>
|
||||
</div>
|
||||
}
|
||||
21
FakePieShop/Views/Shared/_Layout.cshtml
Normal file
21
FakePieShop/Views/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>@ViewBag.Title</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- <div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>Fake Pie Shop</h1>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="row">
|
||||
@RenderBody()
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
2
FakePieShop/Views/_ViewImports.cshtml
Normal file
2
FakePieShop/Views/_ViewImports.cshtml
Normal file
@@ -0,0 +1,2 @@
|
||||
@using FakePieShop.Models;
|
||||
@using FakePieShop.Models.ViewModels;
|
||||
3
FakePieShop/Views/_ViewStart.cshtml
Normal file
3
FakePieShop/Views/_ViewStart.cshtml
Normal file
@@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -19,3 +19,15 @@ build_property._RazorSourceGeneratorDebug =
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/Pie/List.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcUGllXExpc3QuY3NodG1s
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/Shared/_Layout.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcU2hhcmVkXF9MYXlvdXQuY3NodG1s
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/_ViewImports.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcX1ZpZXdJbXBvcnRzLmNzaHRtbA==
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/_ViewStart.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcX1ZpZXdTdGFydC5jc2h0bWw=
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
@@ -1 +1 @@
|
||||
50685e2c9b82e830c89ec7bfa879c7e000313fd6
|
||||
f5e7d7d8819d4a6185f0dfce55185c92c7e46f64
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@@ -19,3 +19,15 @@ build_property._RazorSourceGeneratorDebug =
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/Pie/List.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcUGllXExpc3QuY3NodG1s
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/Shared/_Layout.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcU2hhcmVkXF9MYXlvdXQuY3NodG1s
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/_ViewImports.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcX1ZpZXdJbXBvcnRzLmNzaHRtbA==
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
[C:/Users/mikay/source/repos/FakePieShop/FakePieShop/Views/_ViewStart.cshtml]
|
||||
build_metadata.AdditionalFiles.TargetPath = Vmlld3NcX1ZpZXdTdGFydC5jc2h0bWw=
|
||||
build_metadata.AdditionalFiles.CssScope =
|
||||
|
||||
Reference in New Issue
Block a user