public void prova() { //persona = myres.Get<Person>(new {userId=10}, succ, err); //persona = myres.Action<Person>("fetch", new {userId=10}, succ, err); //persona.Action("fetch"); ResourceRequest<Person> r = new ResourceRequest<Person>(myres); r.Action = "fetch"; r.Parameters["userId"] = 10; r.PostData = null; r.Success = succ; r.Error = err; persona = r.ExecuteRequest(); persona.Action("save"); }
public void succ(Person p, HttpResponseHeaders rh) { Window.Alert(p.name); }