Created
April 30, 2015 15:11
-
-
Save mikeedwards83/0758788d985ddab236a9 to your computer and use it in GitHub Desktop.
ProductController.cs for Glass.Mapper.Sc Workbook
This file contains hidden or 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
| public class ProductController : GlassController | |
| { | |
| public List<Product> Basket | |
| { | |
| get | |
| { | |
| if (HttpContext.Session["ProductBasket"] == null) | |
| { | |
| HttpContext.Session["ProductBasket"] = new List<Product>(); | |
| } | |
| return HttpContext.Session["ProductBasket"] as List<Product>; | |
| } | |
| } | |
| [HttpGet] | |
| public ActionResult Add() | |
| { | |
| } | |
| [HttpPost] | |
| public ActionResult Add(Add view) | |
| { | |
| } | |
| protected void SetupViewAdd(Add view) | |
| { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment