public JsonResult EliminarRolFuncion(Decimal fun_id, Decimal rol_id)
        {
            ecRolFuncionService = new EcRolFuncionService();
            ResponseViewModel res     = new ResponseViewModel();
            string            mensaje = "";
            string            tipo    = "";

            try
            {
                bool valida = ecRolFuncionService.Eliminar_Fun_Roles(fun_id, rol_id, ref mensaje, ref tipo);
                res.Tipo    = tipo;
                res.Mensaje = mensaje;
            }
            catch (Exception e)
            {
                res.Tipo    = Configuration.SI_MSJ_TIP_ERROR;
                res.Mensaje = e.Message;
            }
            return(Json(res));
        }
        public JsonResult BuscarRolFuncion(BeEcRol obj)
        {
            ecRolFuncionService = new EcRolFuncionService();
            ResponseViewModel res     = new ResponseViewModel();
            string            mensaje = "";
            string            tipo    = "";

            try
            {
                List <BeEcFuncion> lst = ecRolFuncionService.get_lista(obj, ref mensaje, ref tipo);
                res.Tipo    = tipo;
                res.Mensaje = mensaje;
                res.Lista   = lst.OrderBy(x => x.fun_orden);
            }
            catch (Exception e)
            {
                res.Tipo    = Configuration.SI_MSJ_TIP_ERROR;
                res.Mensaje = e.Message;
            }
            return(Json(res));
        }