public async Task <IActionResult> DeleteAsync(int id)
        {
            _logger.LogInformation($"Deleting specialty with id {id}.");
            if (await _specialtyRepository.GetSpecialtyByIdAsync(id) is Inner_Specialty specialty)
            {
                await _specialtyRepository.RemoveSpecialtyAsync(specialty.SpecialtyId);

                return(NoContent());
            }
            _logger.LogInformation($"No specialties found with id {id}.");
            return(NotFound());
        }