예제 #1
0
 /// <summary>
 /// Executes the specified action based on the context.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns>The result of the action.</returns>
 protected override ActionResult Execute(ValidateItemContext context)
 {
     return(ValidateTableHelpers.PerformValidation(context.ValidationTable.Validations, this.ValidateProperty));
 }
예제 #2
0
 /// <summary>
 /// Executes the action.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns>The result of the action.</returns>
 protected override ActionResult Execute(ValidateTokenActionContext context)
 {
     return(ValidateTableHelpers.PerformValidation(context.ValidationTable.Validations, ValidateToken));
 }