Exemplo n.º 1
0
 public virtual ActionResult LogOn()
 {
     CurrentSelection currentSelection = new CurrentSelection();
     currentSelection.CategoriesMenu = hopeLingerieEntities.Categories.Where(x => x.ParentCategoryId == null && x.Active).OrderBy(x => x.DisplayOrder).ToList();
     return View(currentSelection);
 }
Exemplo n.º 2
0
        public virtual ActionResult RenderMenu()
        {
            CurrentSelection currentSelection = new CurrentSelection();
            currentSelection.CategoriesMenu = hopeLingerieEntities.Categories.Where(x => x.ParentCategoryId == null && x.Active && x.Enabled).OrderBy(x => x.DisplayOrder).ToList();

            return PartialView("MenuPartialView", currentSelection);
        }