private async Task executeSaveCommand() { if (IsBusy) { return; } IsBusy = true; var newItem = new TripLogEntry { Title = this.Title, Latitude = this.Latitude, Longitude = this.Longitude, Date = this.Date, Rating = this.Rating, Notes = this.Notes }; try { await _tripLogService.AddEntryAsync(newItem); await NavService.GoBack(); } finally { IsBusy = false; } }
async Task ExecuteSaveCommand() { if (IsBusy) { return; } IsBusy = true; try { var newItem = new TripLogEntry { Title = Title, Latitude = Latitude, Longitude = Longitude, Date = Date, Rating = Rating, Notes = Notes }; await _tripLogService.AddEntryAsync(newItem); await NavService.GoBack(); } finally { IsBusy = false; } }
async Task ExecuteSaveCommand() { if (IsBusy) { return; } IsBusy = true; try { var newItem = new TripLogEntry { Title = Title, Latitude = Latitude, Longitude = Longitude, Date = Date, Rating = Rating, Notes = Notes }; //Azure Data Access: Add new entry to Azure database await _tripLogDataService.AddEntryAsync(newItem); //Navigation Service : Go back to the main page await NavService.GoBack(); } finally { IsBusy = false; } }