public object OnGetRequested(object sender, RESTEventArgs args) { ReturnGetRequestHandler getRequestedEvent = getRequested; if (getRequestedEvent != null) { return(getRequestedEvent.Invoke(sender, args)); } return(args); }
// GET encoders/<int value> public object Get(int id) { RESTEventArgs args = new RESTEventArgs(); return(RESTEvent.e_RESTEvent.OnGetRequested(id, args)); }
// GET encoders public object Get() { RESTEventArgs args = new RESTEventArgs(); return(RESTEvent.e_RESTEvent.OnGetRequested(this, args)); }