Man shot in York City