public void EditPerson(Person person) { dataInput.NullCheck(person); if (person != null) { switch (dataInput.WhatToEdit(person)) { case EditAction.Name: dataInput.ChangeName(person); break; case EditAction.Email: dataInput.ChangeEmail(person); break; case EditAction.HomeAdress: dataInput.HomeAdress(person); break; case EditAction.PrivatePhone: dataInput.PrivatePhoneNumber(person); break; case EditAction.WorkPhone: dataInput.WorkPhoneNumber(person); break; } } }