Пример #1
0
        public IActionResult GetMenu()
        {
            try
            {
                Menu        menu        = new Menu();
                Lanche      lanche      = new Lanche();
                Ingrediente ingrediente = new Ingrediente();

                menu.Lanches      = lanche.getAllLanches();
                menu.Ingredientes = ingrediente.getAllIngredientes();

                return(Ok(menu));
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }