public async Task<ActionResult> Index(Guid id)
        {
            var data = await mediator.SendAsync(new GetUserByExportNotificationId(id));
            var model = new ChangeNotificationOwnerViewModel(data);
            model.NotificationId = id;

            var allUsers = await mediator.SendAsync(new GetAllUsers());

            model.AllUsers = allUsers.Where(u => u.UserId != data.UserId).ToList();
            
            return View(model);
        }
        public async Task <ActionResult> Index(Guid id)
        {
            var data = await mediator.SendAsync(new GetUserByExportNotificationId(id));

            var model = new ChangeNotificationOwnerViewModel(data);

            model.NotificationId = id;

            var allUsers = await mediator.SendAsync(new GetAllUsers());

            model.AllUsers = allUsers.Where(u => u.UserId != data.UserId).ToList();

            return(View(model));
        }
        public async Task<ActionResult> Index(Guid id, ChangeNotificationOwnerViewModel model)
        {
            if (!ModelState.IsValid)
            {
                var allUsers = await mediator.SendAsync(new GetAllUsers());

                model.AllUsers = allUsers.ToList();

                return View(model);
            }

            TempData[UserIdKey] = model.SelectedUser;

            return RedirectToAction("Confirm", new { id = model.NotificationId });
        }
        public async Task <ActionResult> Index(Guid id, ChangeNotificationOwnerViewModel model)
        {
            if (!ModelState.IsValid)
            {
                var allUsers = await mediator.SendAsync(new GetAllUsers());

                model.AllUsers = allUsers.ToList();

                return(View(model));
            }

            TempData[UserIdKey] = model.SelectedUser;

            return(RedirectToAction("Confirm", new { id = model.NotificationId }));
        }