예제 #1
0
        public ActionResult Dishes(Guid StallId)
        {
            var manager = new DishManager();
            List <DishEntity> dishes = manager.GetDishByStallIDEntities(StallId);

            return(View("BrowseDishes", dishes));
        }
예제 #2
0
        public ActionResult Dishes(Guid StallId)
        {
            var _manager = new DishManager();
            var list     = _manager.GetDishByStallIDEntities(StallId);

            ViewData["StallId"] = StallId;
            return(View("DishSelection", list));
        }
예제 #3
0
        public ActionResult Dishes(Guid StallId)
        {
            if (!IsAuthorized())
            {
                return(View("Error"));
            }
            var _manager = new DishManager();
            var list     = _manager.GetDishByStallIDEntities(StallId);

            ViewData["StallId"] = StallId;
            return(View("DishSelection", list));
        }
예제 #4
0
        public ActionResult Stalls()
        {
            var _manager              = new StallManager();
            var _dishmanager          = new DishManager();
            List <StallEntity> stalls = _manager.GetAllStallEntities();
            var list = new List <StallEntity>();

            foreach (var stall in stalls)
            {
                var dishes = _dishmanager.GetDishByStallIDEntities(stall.ID.Value);
                if (dishes.Count != 0)
                {
                    list.Add(stall);
                }
            }
            return(View("BrowseStalls", list));
        }