Пример #1
0
        /// <summary>
        /// Delete To Do.
        /// </summary>
        /// <param name="toDoActivity">To Do activity.</param>
        /// <param name="pageContentUrl">page content url.</param>
        /// <returns>True if succeed.</returns>
        public async Task <bool> DeleteToDo(ToDoTaskActivityModel toDoActivity, string pageContentUrl)
        {
            var httpRequestMessage = ServiceHelper.GenerateDeleteToDoHttpRequest(toDoActivity, pageContentUrl);
            var result             = await this.httpClient.SendAsync(httpRequestMessage);

            return(result.IsSuccessStatusCode);
        }