[WebMethod]// רשימת כול האירועים בSQL public List <Event> NotificationTimer() { SendNotification userEvents = new SendNotification(); List <Event> listMsg = userEvents.GetUserEvent(); foreach (var msg in listMsg) { SendNotificationToUser(msg.description, msg.title, msg.RengUser);// האירועים שהגיעו SQL נשלחים למכשירים } return(listMsg); }