public bool SendNotification(Evento evento, String mensaje) { NotificationService notify = new NotificationService(); UsuarioServicio usuarioServicio = new UsuarioServicio(); List <DispositivoView> dispositivos = usuarioServicio.GetDispositivoByEvento(evento.Id); List <string> llaves = dispositivos.Select(x => x.Llave).ToList(); foreach (string notificacion in llaves) { notify.SendPushNotification(notificacion, mensaje + evento.Descripcion + ". ", ""); } string senders = usuarioServicio.GetEmailByEvento(evento.Id); EmailService emailService = new EmailService(); emailService.SendMail(senders, evento); return(true); }