public virtual ActionResult ExportExcelSelected(string selectedIds)
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(AccessDeniedView());
            }

            var docs = new List <ActivityLog>();

            if (selectedIds != null)
            {
                var ids = selectedIds
                          .Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
                          .Select(x => Convert.ToInt64(x))
                          .ToArray();
                docs.AddRange(_dqQueService.GetActivityLogbyIds(ids));
            }

            try
            {
                byte[] bytes = _exportManager.ExportDocumentsToXlsx(docs);
                identity = ((CustomPrincipal)User).CustomIdentity;
                _messagingService.SaveUserActivity(identity.ProfileId, "Downloaded Activity Logs Report", DateTime.Now);
                return(File(bytes, MimeTypes.TextXlsx, "activityLogs.xlsx"));
            }
            catch (Exception exc)
            {
                ErrorNotification(exc);
                return(RedirectToAction("List"));
            }
        }