Exemplo n.º 1
0
        private async Task Init()
        {
            var notes = await _notes.GetAllNotes().ConfigureAwait(false);

            Device.BeginInvokeOnMainThread(() =>
            {
                foreach (var note in notes)
                {
                    NotesBindings.Add(note);
                }
            });
        }
Exemplo n.º 2
0
 public IActionResult GetAllNotes()
 {
     return(Ok(_services.GetAllNotes()));
 }