public AlertWithRecipientDTO(AlertDTO alert)
 {
     IdAlert      = alert.IdAlert;
     IdAlertType  = alert.IdAlertType;
     IdMode       = alert.IdMode;
     Title        = alert.Title;
     Content      = alert.Content;
     LsRecipients = new List <AlertRecipientDTO>();
 }
 /// <summary>
 /// Get the seekios related to an alert
 /// </summary>
 /// <param name="alert">alert</param>
 /// <returns>seekios</returns>
 public SeekiosDTO GetSeekiosFromAlert(AlertDTO alert)
 {
     if (alert == null)
     {
         return(null);
     }
     return((from s in LsSeekios
             join m in App.CurrentUserEnvironment.LsMode on s.Idseekios equals m.Seekios_idseekios
             join a in App.CurrentUserEnvironment.LsAlert on m.Idmode equals a.IdMode
             where a.IdAlert == alert.IdAlert
             select s).FirstOrDefault());
 }