Ejemplo n.º 1
0
        public Response <bool> SaveMenu(MenuResult node)
        {
            var result = new Response <bool>();

            Menu menu = new Menu()
            {
                Id      = node.Id,
                Name    = node.Name,
                Handler = node.Handler,
                Icon    = node.Icon ?? "",
                Remark  = node.Remark ?? ""
            };

            menuDao.BatchUpdate(new List <Menu> {
                menu
            }, "id=?4", n => n.Name, n => n.Handler, n => n.Icon, n => n.Remark, n => n.Id);

            result.Result = true;

            return(result);
        }