private async Task DeleteNoteCommandExecute(int id) { var ci = CrossMultilingual.Current.CurrentCultureInfo; var noteDeleteMessageLocalized = Resmgr.Value.GetString(ConstantsHelper.NoteDeleteMessage, ci); var okLocalized = Resmgr.Value.GetString(ConstantsHelper.Ok, ci); var cancelLocalized = Resmgr.Value.GetString(ConstantsHelper.Cancel, ci); bool result = await AlertService.ShowYesNoAlert(noteDeleteMessageLocalized, okLocalized, cancelLocalized); if (result) { var deleteResult = await NotesService.DeleteNote(id); if (deleteResult) { MessagingCenter.Send(this, ConstantsHelper.ShouldUpdateUI); } //await App.NoteRepository.DeleteAsync(id); //await App.NoteRepository.SaveAsync(); } }