public SimplePosologyAlertDto(VidalAPI.Domain.SimplePosologyAlert alert) { this.Indication = alert.Indication!=null?new IndicationDto(alert.Indication):null; this.PosologyAlert = alert.PosologyAlert!=null?new MessageDto(alert.PosologyAlert.MessageType, alert.PosologyAlert.Text):null; }
public SimplePosologyAlertDto(ServicePoso.simplePosologyAlert alert) { this.Indication = alert.indication!=null?new IndicationDto(alert.indication):null; this.PosologyAlert = alert.posologyAlert!=null?new MessageDto(alert.posologyAlert.messageType, alert.posologyAlert.text):null; }