public int VerificarExpPorCentro(int numexp) {
long numexpe = Convert.ToInt64(numexp);
var query = from p in entities.pacientes
where p.expediente == numexpe
select p.centro_actual;
int centroactual = Convert.ToInt32(query.First().ToString());
return centroactual;
}