public void Execute(object parameter) { var personManager = new PersonManager(); if (parameter is Person person && personManager.Add(new Person { LastName = person.LastName, Name = person.Name, Email = person.Email, DateOfBirth = person.DateOfBirth })) { MessageBox.Show("Person Add Successful !"); } }