Use of Switch Case accordance to actiom param