Added some implementation DispatchRequest to FunctionController.cs