// POST api/ccls public CanvasControlLibrary.Models.CanvasControlLibrary Post([FromBody]CanvasControlLibrary.Models.CanvasControlLibrary CCL) { UserCode uc = new UserCode(); MethodInfo mi = uc.GetType().GetMethod(CCL.FunctionName); mi.Invoke(uc, new Object[] { CCL }); return CCL; }
// POST api/ccls public CanvasControlLibrary.Models.CanvasControlLibrary Post([FromBody] CanvasControlLibrary.Models.CanvasControlLibrary CCL) { UserCode uc = new UserCode(); MethodInfo mi = uc.GetType().GetMethod(CCL.FunctionName); mi.Invoke(uc, new Object[] { CCL }); return(CCL); }