예제 #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));
        }
        public async Task <IHttpActionResult> DeleteTodos(int id)
        {
            await _todoListAppService.ClearTodosAsync(id);

            return(Ok(string.Empty));
        }