how do i get over him

I was going out with a guy for a year when oneday his ex girlfiend rung me and said that he had been seeing her still the whole time she new about me and all of his friends who i thought were mine to also new that he was seeing both of us.I am devestated a dont know how to get over him i dont know how to stop thinking about what he did all day everyday