public async Task <ActionResult> Index(Guid id, CopyFromNotificationViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            try
            {
                var resultId = await
                               mediator.SendAsync(new CopyToNotification(model.SelectedNotification.GetValueOrDefault(), id));

                if (resultId != Guid.Empty)
                {
                    await this.auditService.AddAuditEntry(this.mediator,
                                                          resultId,
                                                          User.GetUserId(),
                                                          NotificationAuditType.Added,
                                                          NotificationAuditScreenType.CopiedFromNotification);

                    return(RedirectToAction("Result", "CopyFromNotification", new { id = resultId }));
                }
            }
            catch (ApiException)
            {
                ModelState.AddModelError(string.Empty, "An error occurred copying this record. Please try again.");
            }

            return(View(model));
        }
        public async Task<ActionResult> Index(Guid id, CopyFromNotificationViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }
            
            try
            {
                var resultId = await
                    mediator.SendAsync(new CopyToNotification(model.SelectedNotification.GetValueOrDefault(), id));

                if (resultId != Guid.Empty)
                {
                    return RedirectToAction("Result", "CopyFromNotification", new { id = resultId });
                }
            }
            catch (ApiException)
            {
                ModelState.AddModelError(string.Empty, "An error occurred copying this record. Please try again.");
            }

            return View(model);
        }