Skip to content

Commit

Permalink
Endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-Babenko committed Jan 5, 2024
1 parent eb25166 commit a990da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Endpoints/ListOfTasksEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void UseListOfTasksEndpoints(this WebApplication app)
db.ListsOfTasks?.Remove(list);
db.SaveChanges();

return Results.Ok();
return Results.Json(list.Tasks?.ToList());
});

// Отримує та встановлює нові дані для списку завдань.
Expand Down

0 comments on commit a990da1

Please sign in to comment.