public static CommunicationMethodModel Convert(CommunicationMethod communicationMethod) { return(new CommunicationMethodModel { Id = communicationMethod.Id, Address = communicationMethod.Address, IsPrefered = communicationMethod.IsPreffered, Type = CommunicationTypeToCommunicationTypeModel.Convert(communicationMethod.Type) }); }
public CommunicationMethodViewModel() { _contactManager = Directory.GetContactManager(); CommunicationMethod = new CommunicationMethod(); }