コード例 #1
0
        public Menu GetCurrentMenu()
        {
            Specialty currentSpecialty = GetCurrentSpecialty();

            List <Dish> availableDishes = dishRepository.Get(x => x.SpecialtyId == currentSpecialty.Id).ToList();
            Menu        menu            = new Menu()
            {
                Specialty = currentSpecialty,
                Dishes    = availableDishes
            };

            return(menu);
        }