Exercise with hernia

What kind of exercises can I do while having umbilical hernia if I am trying to get toned stomach? Can I still do any? I only get some minor pains but looking to get surgery done for hernia.