I was considering a multiclass Eldritch Knight/Mage of Lorehold Wizard.
The Eldritch Knight feature War Magic states
when you use your action to cast a cantrip, you can make one weapon attack as a bonus action.
And Mage of Lorehold Wizard's Lesson of the past-Warrior says
If you use your action to cast a cantrip, you can make one weapon attack as part of that action.
My question is, as both classes use the Wizard spell list, and both classes can cast the same cantrip, can I benefit from both at once? As one is a part of that action and the other is a bonus action? So cast a cantrip, melee attack as part of that action, then melee again as a bonus action. Or is it one or the other?