File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
todo-list/src/McpSamples.TodoList.HybridApp/Repositories Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public async Task<TodoItem> UpdateTodoItemAsync(TodoItem todoItem)
74
74
. ConfigureAwait ( false ) ;
75
75
if ( record is null )
76
76
{
77
- return null ;
77
+ return default ! ;
78
78
}
79
79
80
80
record . Text = todoItem . Text ;
@@ -95,7 +95,7 @@ public async Task<TodoItem> CompleteTodoItemAsync(TodoItem todoItem)
95
95
. ConfigureAwait ( false ) ;
96
96
if ( record is null )
97
97
{
98
- return null ;
98
+ return default ! ;
99
99
}
100
100
101
101
record . IsCompleted = todoItem . IsCompleted ;
@@ -116,7 +116,7 @@ public async Task<TodoItem> DeleteTodoItemAsync(int id)
116
116
. ConfigureAwait ( false ) ;
117
117
if ( record is null )
118
118
{
119
- return null ;
119
+ return default ! ;
120
120
}
121
121
122
122
await db . TodoItems . Where ( p => p . Id == id )
You can’t perform that action at this time.
0 commit comments