The readout of negatively charged nitrogen-vacancy centre electron spins is essential for applications in quantum computation, metrology and sensing. Conventional readout protocols are based on the detection of photons emitted from nitrogen-vacancy centres, a process limited by the efficiency of photon collection. We report on an alternative principle for detecting the magnetic resonance of nitrogen-vacancy centres, allowing the direct photoelectric readout of nitrogen-vacancy centres spin state in an all-diamond device. The photocurrent detection of magnetic resonance scheme is based on the detection of charge carriers promoted to the conduction band of diamond by two-photon ionization of nitrogen-vacancy centres. The optical and photoelectric detection of magnetic resonance are compared, by performing both types of measurements simultaneously. The minima detected in the measured photocurrent at resonant microwave frequencies are attributed to the spin-dependent ionization dynamics of nitrogen-vacancy, originating from spin-selective non-radiative transitions to the metastable singlet state.