void EditTaskCore(TaskItemViewModel task, bool isNew) { if (this.GetService <IDialogService>().ShowDialog(MessageButton.OKCancel, task.Subject, "EditTaskView", task) != MessageResult.OK) { return; } if (!isNew) { SelectedItem.Assign(task); this.GetService <INotificationService>().CreatePredefinedNotification("Task Changed", task.Subject, "").ShowAsync(); } else { task.AssignTo = SelectedEmployee; Items.Add(task); ItemsSource.Add(task); SelectedItem = task; this.GetService <INotificationService>().CreatePredefinedNotification("New Task Created", task.Subject, "").ShowAsync(); } }