public async Task<PaginatedResponse<IEnumerable<NotificationResponse>>> GetNotificationList(NotificationRequest request, int pageIndex, int pageSize, SystemSession session)
        {
            var serviceRequest = new NotificationMob { TypeId = request.FilterType, RequestDirection = request.RequestDirection, NrTypes = request.NotificationRequestTypes, DisplayOnlyId = (int)request.NotificationRequestId.GetValueOrDefault(), SetAsRead = true, PageIndex = pageIndex, PageSize = pageSize, UserId = session.UserId, UserName = session.UserName };
            var response = await Task.Factory.StartNew(() => Client.UserService.getAllNotifications(serviceRequest, session.GetSession())).ConfigureAwait(false);
            var result =
                new PaginatedResponse<IEnumerable<NotificationResponse>>
                {
                    HasNextPage = response.HasNextPage,
                    Page =
                        response.Notifications.Select(
                            x =>
                                new NotificationResponse
                                {
                                    NotificationId = x.NotificationId,
                                    NotifierId = x.UserId,
                                    NotifierUserName = x.UserName,
                                    ReadDate = Convert.ToDateTime(x.ReadDate),
                                    SentDate = Convert.ToDateTime(x.SentDate),
                                    TypeId = x.TypeId,
                                    Type = x.Type,
                                    Name = x.Name,
                                    Picture = x.PictureUrl,
                                    Title = x.Title,
                                    Notification = x.Notification,
                                    MutualFriendId = x.MutualFrdId,
                                    MutualFriendName = x.MutualFrdName,
                                    MutualFriendCount = x.MutualFrdCount,
                                    GroupId = x.GroupId,
                                    GroupName = x.GroupName,
                                    EventId = x.EventId,
                                    EventName = x.EventName,
                                    ClickedDate = Convert.ToDateTime(x.ClickDate)
                                })
                };

            return result;
        }
 public Task<PaginatedResponse<IEnumerable<NotificationResponse>>> GetNotificationList(NotificationRequest request, int pageIndex,
     int pageSize, SystemSession session)
 {
     return _jUnitOfWork.Notification.GetNotificationList(request, pageIndex, pageSize, session);
 }