using System; public class Contact { public string FirstName { get; set; } public string LastName { get; set; } public string PhoneNumber { get; set; } public string CellPhoneNumber { get; set; } } public class ContactDataModel { public string firstName { get; set; } public string lastName { get; set; } public string phone { get; set; } public string mobilePhone { get; set; } } public class Address { public string Address1 { get; set; } public string Address2 { get; set; } public string City { get; set; } public string State { get; set; } public string ZipCode { get; set; } } public class AddressDataModel { public string address1 { get; set; } public string address2 { get; set; } public string city { get; set; } public string state { get; set; } public string zip { get; set; } } public static class ModelMapper { public Contact MapContactDataModelToContact() { var contact = new Contact(); FirstName = firstName; LastName = lastName; PhoneNumber = phoneNumber; CellPhone = mobilePhone; return contact; } }