Пример #1
0
 public static IncidentAlertData ToModel(this IIncidentAlert alert, bool withDetails = false)
 {
     if(alert == null)
     return null;
       var data = new IncidentAlertData() {AlertType = alert.AlertType, IncidentType = alert.IncidentType  };
       if(withDetails) {
       }
       data.AssignCommon(alert);
       return data;
 }
Пример #2
0
        public static IncidentAlertData ToModel(this IIncidentAlert alert, bool withDetails = false)
        {
            if (alert == null)
            {
                return(null);
            }
            var data = new IncidentAlertData()
            {
                AlertType = alert.AlertType, IncidentType = alert.IncidentType
            };

            if (withDetails)
            {
            }
            data.AssignCommon(alert);
            return(data);
        }