Пример #1
0
        public String Managment_Rol(Rol_S _Rol)
        {
            B_Rol      b_Rol          = new B_Rol();
            Rol_Result a              = b_Rol.Managment_Rol(new Rol(_Rol.rol_RolId, _Rol.rol_Nombre, _Rol.rol_Descripcion, _Rol.rol_Estado), _Rol.Action);
            var        jsonSerialiser = new JavaScriptSerializer();
            var        json           = jsonSerialiser.Serialize(a);

            return(json);
        }
Пример #2
0
        public String list_rol()
        {
            B_Rol      b_Rol          = new B_Rol();
            List <Rol> _list          = b_Rol.list_rol();
            var        jsonSerialiser = new JavaScriptSerializer();
            var        json           = jsonSerialiser.Serialize(_list);

            return(json);
        }