public PaggingDatas notifyDelivered(int list, int page, int customerid)
 {
     try
     {
         PaggingDatas data               = new PaggingDatas();
         var          total_count        = context.DeviceNotificationDb.Where(x => x.CustomerId == customerid).Count();
         var          notificationmaster = context.DeviceNotificationDb.Where(x => x.CustomerId == customerid).OrderByDescending(x => x.NotificationTime).Skip((page - 1) * list).Take(list).ToList();
         data.notificationmaster = notificationmaster;
         data.total_count        = total_count;
         return(data);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
 public PaggingDatas notifyy(int list, int page)
 {
     try
     {
         PaggingDatas data               = new PaggingDatas();
         var          total_count        = context.NotificationDb.Where(x => x.Message != null).Count();
         var          notificationmaster = context.NotificationDb.Where(x => x.Message != null).OrderByDescending(x => x.NotificationTime).Skip((page - 1) * list).Take(list).ToList();
         data.notificationmaster = notificationmaster;
         data.total_count        = total_count;
         return(data);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }