Parameter validation

Feb 8, 2011 at 6:05 PM

Is this supported?

 

Like:

 

public Token SignIn(
   [Required(AllowEmptyStrings = false,
                  ErrorMessageResourceType = typeof(Resources),
                  ErrorMessageResourceName = "Authentication_VerificationCode_CanNotBeNullOrEmpty")]
   string verificacionCode,
   HttpResponseMessage response)

 

(where a processor does the validation and automatically stops processing with presumably a Bad Request status code?)

Feb 8, 2011 at 6:22 PM

wrong forum :)