BL.SeguimientoPacientes.VerificarExpPorCentro C# (CSharp) Méthode

VerificarExpPorCentro() public méthode

public VerificarExpPorCentro ( int numexp ) : int
numexp int
Résultat int
        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;
        }