  In this paper, we investigate the common parameter space of dark matter and
leptogenesis in the $U(1)_{B-L}$ symmetry. This model involves a complex scalar
$\phi$, sterile neutrinos $N$, and Majorana dark matter $\chi$, where only dark
matter $\chi$ is charged under the $Z_2$ symmetry. Masses of $N$ and $\chi$ are
generated via the Yukawa interactions to $\phi$ after breaking of the
$U(1)_{B-L}$ symmetry. TeV scale sterile neutrinos $N$ are responsible for the
generation of baryon asymmetry through the resonance leptogenesis mechanism.
The new particles in the $U(1)_{B-L}$ have a significant impact on the dilution
of $N$, thus on leptogenesis. Meanwhile, the annihilation processes of dark
matter $\chi$ are almost identical to that of $N$, which indicates that both
leptogenesis and dark matter are closely related to satisfying the observed
results simultaneously. Under various theoretical and experimental constraints,
the viable common parameter space of dark matter and leptogenesis is obtained
for both global and local $U(1)_{B-L}$ symmetry.
