public ActionResult Dishes(Guid StallId) { var manager = new DishManager(); List <DishEntity> dishes = manager.GetDishByStallIDEntities(StallId); return(View("BrowseDishes", dishes)); }
public ActionResult Dishes(Guid StallId) { var _manager = new DishManager(); var list = _manager.GetDishByStallIDEntities(StallId); ViewData["StallId"] = StallId; return(View("DishSelection", list)); }
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)); }
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)); }