Пример #1
0
        public IActionResult guardarMenu([FromBody] Menu menu)
        {
            int userId = menu.userId;
            var handle = new HandleMenu();

            handle.Obtener();
            handle.Actualizar(menu);
            handle.GuardarCambios();
            return(Ok());
        }
Пример #2
0
        public Menu enviarMenu(int id)
        {
            HandleMenu handle = new HandleMenu();

            handle.Obtener();
            Menu _menu = handle.devolverMenu(id);

            handle.GuardarCambios();
            return(_menu);
        }