public async Task <IActionResult> Delete(long id) { var response = await _toDoItemService.DeleteToDoItemAsync(id); if (response == null) { return(NotFound()); } return(NoContent()); }