private async void createProject_Click(object sender, System.Windows.RoutedEventArgs e) { var project = new Project { Name = VM.ProjectName, ID = Guid.NewGuid().ToString() }; VM.Projects.Add(project); VM.IsCreatingProject = false; VM.IsProjectNameEmpty = false; VM.ProjectName = string.Empty; DBStatus status = await SQLDbHelper.AddProject(project); if (status == DBStatus.Failed) { System.Diagnostics.Debug.WriteLine($"Storing project information failed."); } }