public async Task <IActionResult> DeleteDoctor(string username)
        {
            if (username == null)
            {
                return(NotFound());
            }

            var user = await _userHelper.GetUserByEmailAsync(username);

            if (user == null)
            {
                return(NotFound());
            }

            var doctor = await _doctorRepository.GetDoctorByUserAsync(user);

            if (doctor == null)
            {
                return(NotFound());
            }

            await _doctorRepository.DeleteDoctorWithUserAsync(doctor);

            return(this.RedirectToAction(nameof(Index)));
        }