"Creates an BadRequestResult that produces a Microsoft.AspNetCore.Http.StatusCodes.Status 400 Bad Request response. Returns: The created BadRequestResult for the response. Action method returns undeclared status code '400'" code example
Example: asp.net core task iactionresult
asp.net core task iactionresult