public async Task <IActionResult> GetAllIndex()
        {
            List <ApprovalNotificationsViewModel> viewModels = new List <ApprovalNotificationsViewModel>();
            var approvalData = _approvalNotificationsRepository.GetAll_Index();
            var user         = await _userManager.GetUserAsync(HttpContext.User);

            approvalData = _bEUsersPrivilegesService.FilterApprovalPages(approvalData.ToList(), user.Id);

            foreach (var data in approvalData)
            {
                viewModels.Add(data.MapToApprovalNotificationsViewModel());
            }


            return(Json(new { data = viewModels.OrderByDescending(x => x.Id) }));
        }