예제 #1
0
 //
 // GET: /Home/
 public ActionResult Index()
 {
     Category cat = new Category();
     cat.getProductsForFeatured();
     cat.getProductsForStaff();
     return View(cat);
 }
예제 #2
0
 //
 // GET: /Store/Browse
 public ActionResult Browse(int categoryId)
 {
     if (Session["loggedIn"] != null)
     {
         string accountType = Session["account"].ToString();
         Category category = new Category(categoryId, accountType);
         return View(category);
     }
     else
     {
         Category category = new Category(categoryId, "Personal");
         return View(category);
     }
 }
예제 #3
0
 //
 // GET: /Store/
 public ActionResult Index()
 {
     Category categories = new Category();
     return View(categories);
 }