コード例 #1
0
        public async Task <IHttpActionResult> DeleteTodos(int id)
        {
            var todoListDesc = new EntityDescriptor(id, GetETag());
            var ret          = await _todoListAppService.ClearTodosAsync(todoListDesc);

            return(ETagOk(ret.EntityVersion, string.Empty));
        }
コード例 #2
0
        public async Task <IHttpActionResult> DeleteTodos(int id)
        {
            await _todoListAppService.ClearTodosAsync(id);

            return(Ok(string.Empty));
        }