public async Task <IActionResult> OnGetAsync(long Id)
        {
            if (await repository.GetPatientAsync(Id) == null)
            {
                return(NotFound());
            }
            PatientId   = Id;
            Departments = await repository.GetDepartmentsAsync();

            return(Page());
        }