public JsonResult EliminarUsuarioRol(Decimal usu_id, Decimal rol_id)
        {
            ecUsurioRolService = new EcUsurioRolService();
            ResponseViewModel res     = new ResponseViewModel();
            string            mensaje = "";
            string            tipo    = "";

            try
            {
                bool valida = ecUsurioRolService.Eliminar_Rol_Usuario(usu_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 BuscarUsuarioRol(BeEcUsuario obj)
        {
            ecUsurioRolService = new EcUsurioRolService();
            ResponseViewModel res     = new ResponseViewModel();
            string            mensaje = "";
            string            tipo    = "";

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