public async Task <VisitTypeEntity> UpdateVisitTypeByIdAsync(VisitTypeEntity visitTypeEntity, CancellationToken token)
        {
            _dbContext.VisitTypes.Update(visitTypeEntity);
            await _dbContext.SaveChangesAsync(token);

            return(visitTypeEntity);
        }
        public async Task <VisitTypeEntity> CreateVisitTypeAsync(VisitTypeEntity visitTypeEntity, CancellationToken token)
        {
            await _dbContext.VisitTypes.AddAsync(visitTypeEntity, token);

            await _dbContext.SaveChangesAsync(token);

            return(await _dbContext.VisitTypes
                   .SingleAsync(visitType => visitType.Id == visitTypeEntity.Id, token));
        }