public async Task DeleteNote(NoteModel note)
        {
            await _noteService.DeleteNoteAsync(note);

            var noteChange = new NoteChangeModel {
                Change = NoteChange.Deleted, Model = note
            };
            await Clients.Caller.SendCoreAsync(NotesHubMessages.NotesUpdated, new [] { noteChange });
        }
        public async Task PutNote(NoteModel note)
        {
            var claims = Context.User.Claims;
            var userId = _userTokenService.UserId(claims);
            await _noteService.SaveNoteAsync(userId, note);

            var noteChange = new NoteChangeModel {
                Change = NoteChange.Added, Model = note
            };
            await Clients.Caller.SendCoreAsync(NotesHubMessages.NotesUpdated, new [] { noteChange });
        }