常用方法
常用方法
常用方法
常用方法
public ActionResult Restorant() { FoodRepository FoodRepository = new FoodRepository(); List <Menu> RestorantList = FoodRepository.RestorantList(); foreach (var item in RestorantList) { List <FoodItem> menu = FoodRepository.RestorantMenu(item.RestorantName); item.FoodItemList = menu; } return(View(RestorantList)); }