/// <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)); }
/// <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)); }