Bumps from shaving

Maddie
Okay so yesterday in the late afternoon I dry shaved my legs, like I put water and soap on my legs so I can shave. I took a shower like after 1:45 am and I just took of my pants to put lotion on and I have these bumps. I know what they are, but how do you get rid of them?