Below sample code. how I will call from one controller to another controller to merge common logic.
Controller1
RequestMappint("/v1&q