Example #1
0
 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()));
 }
Example #2
0
 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()));
 }