State tax filing

Hi. I have a similar question - also work for UMGC in MD but live in NC.  I paid MD tax for a long time because it was deducted from my pay until the last few years they started taking NC tax out of the UMGC pay instead.  Does that mean I don't need to pay MD tax at all?  Or do I still have to pay both?  I can't find a legit answer anywhere.  

Thanks!