We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bae5837 + 4fbc990 commit fce469eCopy full SHA for fce469e
Src/Core/F14/BusinessLogic/F14Service.cs
@@ -33,14 +33,17 @@ CancellationToken ct
33
return F14Constant.DefaultResponse.App.TODO_TASK_LIST_NOT_FOUND;
34
}
35
36
- var doesTaskExist = await _repository.Value.DoesTodoTaskExistAsync(
37
- request.TodoTaskId,
38
- request.TodoTaskListId,
39
- ct
40
- );
41
- if (!doesTaskExist && request.TodoTaskId != 0)
+ if (request.TodoTaskId != 0)
42
{
43
- return F14Constant.DefaultResponse.App.TASK_NOT_FOUND;
+ var doesTaskExist = await _repository.Value.DoesTodoTaskExistAsync(
+ request.TodoTaskId,
+ request.TodoTaskListId,
+ ct
+ );
+ if (!doesTaskExist)
44
+ {
45
+ return F14Constant.DefaultResponse.App.TASK_NOT_FOUND;
46
+ }
47
48
49
var input = new F14GetTodoTasksInputModel
0 commit comments