public void Enqueue(AttendanceLog model) { var message = JsonConvert.SerializeObject(model); var id = _db.Enqueue(model.Id, message); _hub.PublishAsync(new EventMessage(EventType.SyncWeb, id, model.Id, message)); }