Added a Save action method to the FunctionController