public async Task <IActionResult> Index(string type = "All", int pageindex = 1, int pagesize = 25)
        {
            ListNotificationViewModel list_notification = new ListNotificationViewModel();

            if (type == "All")
            {
                list_notification = await _notificationService.GetNotifications(Core.Entities.EntityType.System, pageindex, pagesize);
            }
            else if (type == "Campaign")
            {
                list_notification = await _notificationService.GetNotificationByGroup(Core.Entities.EntityType.System, "Campaign", pageindex, pagesize);
            }
            else if (type == "Payment")
            {
                list_notification = await _notificationService.GetNotificationByGroup(Core.Entities.EntityType.System, "Payment", pageindex, pagesize);
            }
            else if (type == "Influencer")
            {
                list_notification = await _notificationService.GetNotificationByGroup(Core.Entities.EntityType.System, "Influencer", pageindex, pagesize);
            }

            return(View(list_notification));
        }
        public async Task <IActionResult> Index(NotificationTypeGroup?type, string daterange, int pageindex = 1)
        {
            ViewBag.type      = type;
            ViewBag.daterange = daterange;

            ListNotificationViewModel _list = new ListNotificationViewModel();

            if (type == null)
            {
                _list = await _notificationService.GetNotifications(CurrentUser.Type, CurrentUser.Id, type, daterange, string.Empty, pageindex, pagesize);
            }


            if (type == NotificationTypeGroup.System)
            {
                _list = await _notificationService.GetNotificationByGroup(CurrentUser.Type, CurrentUser.Id, type.ToString(), daterange, pageindex, pagesize);
            }


            if (type == NotificationTypeGroup.Campaign)
            {
                _list = await _notificationService.GetNotificationByGroup(CurrentUser.Type, CurrentUser.Id, type.ToString(), daterange, pageindex, pagesize);
            }

            if (type == NotificationTypeGroup.Payment)
            {
                _list = await _notificationService.GetNotificationByGroup(CurrentUser.Type, CurrentUser.Id, type.ToString(), daterange, pageindex, pagesize);
            }

            if (type == NotificationTypeGroup.Influencer)
            {
                _list = await _notificationService.GetNotificationByGroup(CurrentUser.Type, CurrentUser.Id, type.ToString(), daterange, pageindex, pagesize);
            }


            return(View(_list));
        }