inserted a case statement in update action of wagers controller in lieu of a series of elsifs