.

WPF confirmation boxes

MessageBoxResult answer = MessageBox.Show("Do you want to delete this contact?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);
if (answer == MessageBoxResult.Yes)
{
    Person.DeletedDate = DateTime.Now;
    new TheDataService().UpdatePerson(Person);
}

What's your thoughts on this?

*

Protected by WP Anti Spam