public static List <ZNotification> GetNotificationsByNumber(string userName, int startIndex, int endIndex) { ReadNotifications.ReadNotifications rd = new ReadNotifications.ReadNotifications(); var notification = rd.ZReadNotification(DateTime.Now, userName).OrderBy(s => s.ShowDate); return(notification.Take(endIndex - startIndex).ToList()); }
/// <summary> /// Web servisten bildirim litesini çekiyor /// </summary> /// <param name="userName">Bilgisayarı açan kullanıcı</param> /// <returns></returns> public static List <ZNotification> GetAllNotification(string userName) { ReadNotifications.ReadNotifications rd = new ReadNotifications.ReadNotifications(); var notification = rd.ZReadNotification(DateTime.Now, userName); return(notification.ToList()); }