// GET: Home
        public ActionResult Index()
        {
            // Get all of the categories from the database
            // var model = dal.GetCategories();
            var categories = dal.GetAllCategories();

            return(View("Index", categories));
        }
Esempio n. 2
0
        // GET: Main Menu
        public ActionResult Main()
        {
            List <Category> model = catDal.GetAllCategories();

            return(View("Main", model));
        }
Esempio n. 3
0
 public List <Category> GetAllCategories()
 {
     return(_iCategoryDAL.GetAllCategories());
 }