public static CommunicationMethod Convert(CommunicationMethodModel communicationMethodModel) { return(new CommunicationMethod { Id = communicationMethodModel.Id, Address = communicationMethodModel.Address, IsPreffered = communicationMethodModel.IsPrefered, Type = CommunicationTypeModelToCommunicationType.Convert(communicationMethodModel.Type) }); }
public CommunicationTypeViewModel() { CommunicationType = new CommunicationType(); _communicationTypeManager = Directory.GetCommunicationTypeManager(); Types = new ObservableCollection <CommunicationType>(CommunicationTypeModelToCommunicationType.Convert(_communicationTypeManager.GetAllTypes())); }