Add invoke method to mvc