public MainViewModel() { DeleteRowCommand = new Command <TutorialModel>(execute: async(tutorialModel) => { await tutorials.DeleteTutorial(tutorialModel); LoadListTutorials(); }); DeleteAllRowCommand = new Command(execute: async() => { await tutorials.DeleteAllTutorials(); LoadListTutorials(); }); UpdateRowCommand = new Command <TutorialModel>(execute: async(tutorialModel) => { await tutorials.UpdateTutorial(tutorialModel); LoadListTutorials(); }); InsertRowCommand = new Command(execute: async() => { await tutorials.InsertTutorial(new TutorialModel() { TutorialTitulo = Titulo, TutorialDescripcion = Descripcion }); Titulo = ""; Descripcion = ""; LoadListTutorials(); }); LoadListTutorials(); }