Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpGet("{filter:Filter}")]
- [SwaggerResponse(HttpStatusCode.OK, typeof(BatchesResponse))]
- [SwaggerResponse(HttpStatusCode.BadRequest, typeof(ModelStateDictionary))]
- public async Task<ActionResult> List(Filter filter)
- {
- if (!ModelState.IsValid)
- return BadRequest(ModelState);
- var result = _repository.GetAll();
- return Ok(new BatchesResponse(result));
- }
- System.InvalidOperationException: The constraint entry 'filter' - 'Filter' on the route 'api/{ver:apiVersion}/Batches/{filter:Filter}' could not be resolved by the constraint resolver of type 'DefaultInlineConstraintResolver'.
Add Comment
Please, Sign In to add comment