public async Task <IActionResult> OnPostUnmatch(string labReferenceNumber)
        {
            var userName = User.Username();
            await _specimenService.UnmatchSpecimenAsync(NotificationId, labReferenceNumber, userName);

            return(RedirectToPage("/Notifications/Edit/TestResults", new { NotificationId }));
        }
        public async Task <IActionResult> OnPostUnmatchPotential()
        {
            var(laboratoryReferenceNumber, value) = PotentialMatchSelections.Single();

            if (!ModelState.IsValid || !value.NotificationId.HasValue)
            {
                await PreparePageForGetAsync();

                return(Page());
            }

            var userName = User.Username();
            await _specimenService.UnmatchSpecimenAsync((int)value.NotificationId, laboratoryReferenceNumber, userName, isPotential : true);

            return(RedirectToPage("/LabResults/Index"));
        }