示例#1
0
        private static string deleteNotificaciones(string message, DBStorage db)
        {
            AlmacenInventarioNotificacionDelete notificacion;

            try
            {
                notificacion = (AlmacenInventarioNotificacionDelete)JsonConvert.DeserializeObject(message, typeof(AlmacenInventarioNotificacionDelete));
            }
            catch (Exception) { return("ERR"); }
            if (notificacion == null || !notificacion.isValid())
            {
                return("ERR");
            }

            return(db.deleteNotificacionAlmacen(notificacion.idAlmacen, notificacion.id) ? "OK" : "ERR");
        }