Digital Marketing is the whole concept/method of marketing any product or service digitally(on the web)
SEO is enhancing your search results or optimising the search terms you want to target!
SEO is a big part of digital marketing not vice versa!
Digital Marketing also includes PPC ,Social Media and Content marketing which is not SEO technically!