public async Task <ActionResult> TransitExitPoint(Guid id, Guid transitStateId)
        {
            var transitStateData =
                await mediator.SendAsync(new GetTransitStateWithEntryOrExitData(id, transitStateId));

            var model = new TransitExitPointViewModel(transitStateData.TransitState, transitStateData.EntryOrExitPoints);

            return(View(model));
        }
        public async Task <ActionResult> TransitExitPoint(Guid id, Guid transitStateId, TransitExitPointViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(await TransitExitPoint(id, transitStateId));
            }

            await mediator.SendAsync(new UpdateTransitStateEntryOrExit(id, transitStateId, null, model.SelectedExitPoint));

            await auditService.AddAuditEntry(mediator,
                                             id,
                                             User.GetUserId(),
                                             NotificationAuditType.Updated,
                                             NotificationAuditScreenType.Transits);

            return(RedirectToAction("TransitExitPointChanged", new { id, transitStateId }));
        }