public void Delete() { repository.DeletePermanently(SelectedItem); if (null != SelectedItem) { tasks.Remove(SelectedItem); } }
public void Delete() { repository.DeletePermanently(SelectedItem); if (null != SelectedItem) { tasks.Remove(SelectedItem); } }