protected async Task SavePlantAsync() { try{ await _plantService.AddNew(NewPlant); await NavigationService.NavigateToAsync <MainPageModel>(); await NavigationService.RemoveLastFromBackStackAsync(); await NavigationService.RemoveLastFromBackStackAsync(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Error: " + ex.Message); await DialogService.ShowAlertAsync(ex.Message, "Save Failed", "Ok"); } }