コード例 #1
0
        /// <summary>
        /// Delete a task.
        /// </summary>
        /// <param name="taskId">ID of task to delete</param>
        /// <returns>task deleted</returns>
        public async Task DeleteTask(string taskId)
        {
            Arguments.CheckNotNull(taskId, nameof(taskId));

            await _service.DeleteTasksIDAsync(taskId);
        }
コード例 #2
0
        /// <summary>
        /// Delete a task.
        /// </summary>
        /// <param name="taskId">ID of task to delete</param>
        /// <returns>task deleted</returns>
        public Task DeleteTaskAsync(string taskId)
        {
            Arguments.CheckNotNull(taskId, nameof(taskId));

            return(_service.DeleteTasksIDAsync(taskId));
        }