Skip to content

Commit

Permalink
Update TodosController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
stianleroux committed Sep 16, 2024
1 parent 726745f commit e72aa8c
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit e72aa8c

Please sign in to comment.