// 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));
        }
        // GET: Main Menu
        public ActionResult Main()
        {
            List <Category> model = catDal.GetAllCategories();

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