Add message to context.result

Viewed 4194

I'm creating a DataAnnotation that if not successful will return a BadRequest.

context.Result = new BadRequestResult();

That works fine.

I want to include a message along with this, but BadRequestResult doesn't appear to take any message params?

Is there a way to do this...include a message to say e.g. "reference number not supplied"

Thanks

2 Answers
Related