Exemplo n.º 1
0
        public void Save()
        {
            Contact temp = Contact;

            Validation.validateContact(temp);

            _applicationPresenter.SaveContact(temp);
        }
Exemplo n.º 2
0
        public void Save()
        {
            if (contactInfoValidator.validateContact(View, Contact))
            {
                applicationPresenter.SaveContact(Contact);
            }
            else
            {
                string statusMessage = string.Format(
                    "Contact '{0}' Couldn't be saved dude to Invalid Data",
                    contact.LookupName
                    );

                applicationPresenter.UpdateStatusText(statusMessage);
            }
        }
 public void Save()
 {
     _applicationPresenter.SaveContact(Contact);
 }