forked from dotnet-architecture/eShopOnContainers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlos Cañizares Estévez
committed
Oct 21, 2016
1 parent
2ba685c
commit c424f08
Showing
65 changed files
with
5,497 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.eShopOnContainers.WebMVC.Services; | ||
using Microsoft.eShopOnContainers.WebMVC.Models; | ||
|
||
namespace Microsoft.eShopOnContainers.WebMVC.Controllers | ||
{ | ||
public class OrderController : Controller | ||
{ | ||
private IOrderingService _orderSvc; | ||
public OrderController(IOrderingService orderSvc) | ||
{ | ||
_orderSvc = orderSvc; | ||
} | ||
|
||
public IActionResult Cart() | ||
{ | ||
return View(); | ||
} | ||
|
||
public IActionResult Create() | ||
{ | ||
return View(); | ||
} | ||
|
||
public IActionResult Index(Order item) | ||
{ | ||
_orderSvc.AddOrder(item); | ||
return View(_orderSvc.GetOrders()); | ||
} | ||
} | ||
} |
40 changes: 33 additions & 7 deletions
40
...00000000_CreateIdentitySchema.Designer.cs → ...ns/20161019122215_Init_Scheme.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.