コード例 #1
0
ファイル: BrowseController.cs プロジェクト: nklinh/ASE
        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
ファイル: BrowseController.cs プロジェクト: joepadde/ASE
        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));
        }