Manchester City overcame the weather and a spirited West Ham side to win 2-1 on Sunday.