Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stianleroux committed Sep 16, 2024
1 parent cf4217a commit 85c5794
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Phase 5/src/02. Step 1/Api/Controllers/TodosController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class TodosController : ApiController
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>ActionResult</returns>
[HttpPost("Search")]
[ProducesResponseType(typeof(Result<IEnumerable<TodoModel>>, 200)]
[ProducesResponseType(typeof(Result<IEnumerable<TodoModel>>), 200)]
[ProducesResponseType(typeof(ErrorResult), 400)]
public async Task<ActionResult<Result<IEnumerable<TodoModel>>>> Search(SearchTodoModel model, CancellationToken cancellationToken = default)
=> ResponseHelper.ResponseOutcome(await this.Mediator.Send(new GetTodosQuery() { Data = model }, cancellationToken), this);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Core.Todos.Commands;

using Common.Models.Todos;
using LazyCache;

public class CompleteTodoCommand : IRequest<Result<TodoModel>>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
namespace Core.Todos.Commands;

using LazyCache;

public class DeleteTodoCommand : IRequest<Result>
{
public required int Id { get; set; }
Expand Down

0 comments on commit 85c5794

Please sign in to comment.