public static Person AddNewPerson() { string fn = Add("First Name"); string ln = Add("Last Name"); return(DatabaseAction.AddNewContact(fn, ln)); }
public static Person_phone AddNewPhone(Person p) { int cc = (int)Enum.Parse(typeof(Country), Add <Country>("Country Code")); string area = Add("AreaCode"); string number = Add("Phone Number (Exclude AreaCode)"); string ext = Add("Extension"); return(DatabaseAction.AddNewContact(p, cc, area, number, ext)); }
public static Person_address AddNewAddress(Person p) { string hnum = Add("House Number"); string street = Add("Street Name"); string city = Add("City"); string state = Enum.GetName(typeof(State), Enum.Parse(typeof(State), Add <State>("State"))); string country = Enum.GetName(typeof(Country), Enum.Parse(typeof(Country), Add <Country>("State"))); string zip = Add("ZipCode"); return(DatabaseAction.AddNewContact(p, hnum, street, city, state, country, zip)); }