Skip to content

Commit 7c79518

Browse files
committed
pages added
1 parent e0e779b commit 7c79518

14 files changed

+154
-6
lines changed

AspnetRunBasics/AspnetRunBasics.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1616
</PackageReference>
17+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.1" />
1718
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.9.10" />
19+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.1" />
1820
</ItemGroup>
1921

2022

AspnetRunBasics/Pages/Cart.cshtml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@page
2+
@model AspnetRunBasics.CartModel
3+
@{
4+
ViewData["Title"] = "Cart";
5+
}
6+
7+
<h1>Cart</h1>
8+

AspnetRunBasics/Pages/Cart.cshtml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
7+
8+
namespace AspnetRunBasics
9+
{
10+
public class CartModel : PageModel
11+
{
12+
public void OnGet()
13+
{
14+
15+
}
16+
}
17+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@page
2+
@model AspnetRunBasics.ConfirmationModel
3+
@{
4+
ViewData["Title"] = "Confirmation";
5+
}
6+
7+
<h1>Confirmation</h1>
8+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
7+
8+
namespace AspnetRunBasics
9+
{
10+
public class ConfirmationModel : PageModel
11+
{
12+
public void OnGet()
13+
{
14+
15+
}
16+
}
17+
}

AspnetRunBasics/Pages/Contact.cshtml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@page
2+
@model AspnetRunBasics.ContactModel
3+
@{
4+
ViewData["Title"] = "Contact";
5+
}
6+
7+
<h1>Contact</h1>
8+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
7+
8+
namespace AspnetRunBasics
9+
{
10+
public class ContactModel : PageModel
11+
{
12+
public void OnGet()
13+
{
14+
15+
}
16+
}
17+
}

AspnetRunBasics/Pages/Index.cshtml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
ViewData["Title"] = "Home page";
55
}
66

7-
87
<section class="jumbotron text-center">
98
<div class="container">
109
<h1 class="jumbotron-heading">E-COMMERCE BOOTSTRAP THEME</h1>
1110
<p class="lead text-muted mb-0">Simple theme for e-commerce buid with Bootstrap 4.0.0. Pages available : home, category, product, cart & contact</p>
1211
</div>
1312
</section>
13+
1414
<div class="container">
1515
<div class="row">
1616
<div class="col">
@@ -63,7 +63,6 @@
6363
</div>
6464
</div>
6565

66-
6766
<div class="container mt-3">
6867
<div class="row">
6968
<div class="col-sm">
@@ -148,7 +147,6 @@
148147
</div>
149148
</div>
150149

151-
152150
<div class="container mt-3 mb-4">
153151
<div class="row">
154152
<div class="col-sm">
@@ -231,6 +229,4 @@
231229
</div>
232230
</div>
233231
</div>
234-
</div>
235-
236-
232+
</div>

AspnetRunBasics/Pages/Order.cshtml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@page
2+
@model AspnetRunBasics.OrderModel
3+
@{
4+
ViewData["Title"] = "Order";
5+
}
6+
7+
<h1>Order</h1>
8+

AspnetRunBasics/Pages/Order.cshtml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
using Microsoft.AspNetCore.Mvc.RazorPages;
7+
8+
namespace AspnetRunBasics
9+
{
10+
public class OrderModel : PageModel
11+
{
12+
public void OnGet()
13+
{
14+
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)