redesigned method for all api controllers and mvc controllers to be async