async public Task <ToDo> Update(Api api, ToDoData data) { return(await api.PostAsync <ToDo>(Api.Combine("buckets", bucket.id, "todos", id, "todos"), null, data.ToJObject())); }
async static public Task <ToDo> CreateToDo(Api api, long projectId, long toDoListId, ToDoData data) { if (string.IsNullOrEmpty(data.content)) { throw new ApplicationException("Content not supplied"); } return(await api.PostAsync <ToDo>(Api.Combine("buckets", projectId, "todolists", toDoListId, "todos"), null, data.ToJObject())); }