public async Task <ModelFeed> Edit(ModelFeed data) { Debug.Log("ED: " + data.Serialize()); var res = await web.Put(ENDPOINT + "/" + data._id, data.Serialize()); return(res.err ? null : data); }
public async Task <ModelFeed> Create(ModelFeed data) { var res = await web.Post(ENDPOINT, data.Serialize()); return(res.err ? null : res.data["data"].Deserialize <ModelFeed> ()); }