public int Elimina_C_CANDIDATO(SPE_OBTIENE_C_CANDIDATO_Result V_C_CANDIDATO, string usuario = null, string programa = null) { using (context = new SistemaSigeinEntities()) { //Declaramos el objeto de valor de retorno ObjectParameter pout_clave_retorno = new ObjectParameter("POUT_CLAVE_RETORNO", typeof(int)); context.SPE_ELIMINA_C_CANDIDATO(pout_clave_retorno, V_C_CANDIDATO.ID_CANDIDATO, usuario, programa); //regresamos el valor de retorno de sql return(Convert.ToInt32(pout_clave_retorno.Value)); } }