public int InsereCategoria(user_menu1 cat, List <user_cat_atributos> atrib)
        {
            int i = 1;

            cat.id_oper = _menurepository.UltimoId();
            //var cat2 = _menurepository.Adicionar(cat);
            var cat2 = _menurepository.AddDapper(cat);

            foreach (var item in atrib)
            {
                item.ordem   = i;
                item.id_oper = cat.id_oper;
                _atribrepository.Adicionar(item);
                i = i + 1;
            }
            return(cat2);
        }