示例#1
0
        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());
        }
示例#2
0
        /// <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());
        }