public async Task SaveCurrentNotePageAsync(NotePageModel currentNotePage)
        {
            if (currentNotePage != null && !currentNotePage.IsEmpty)
            {
                string notePageFileName = GetNotePageFileName(currentNotePage);

                await _localStorage.SaveFileAsync(notePageFileName, currentNotePage);

                _localStorage.Save("currentNotePageId", currentNotePage.Id);

                if (_remoteFileStorage != null)
                {
                    await _remoteFileStorage.CreateFileAsync(notePageFileName, currentNotePage);

                    _remoteSettingsStorage.Save("currentNotePageId", currentNotePage.Id);
                }
            }
        }
 private string GetNotePageFileName(NotePageModel notePage)
 {
     return(notePage.Id + ".json");
 }