When I try to return BadRequest with ModelStateDictionary using your package, app crashes. I think, app does infinitive loop in:
public static Task BadRequest(this HttpContext context, ModelStateDictionary modelState)
{
if (modelState == null)
{
throw new ArgumentNullException(nameof(modelState));
}
return context.BadRequest(modelState);
}
It called BadRequest(ModelStateDictionary), so itself
When I try to return BadRequest with ModelStateDictionary using your package, app crashes. I think, app does infinitive loop in:
It called BadRequest(ModelStateDictionary), so itself