/// <summary>
 /// Gets customizations associated with this validation request.
 /// </summary>
 /// <param name="context">Current action context</param>
 /// <param name="model">The object being validated</param>
 /// <returns>Customizations</returns>
 protected static CustomizeValidatorAttribute GetCustomizations(ActionContext context, object model)
 {
     return(MvcValidationHelper.GetCustomizations(context, model));
 }
 /// <summary>
 /// Gets the metadata object for the root object being validated.
 /// </summary>
 /// <param name="mvContext">MVC Validation context</param>
 /// <returns>Metadata instance.</returns>
 protected static ModelMetadata GetRootMetadata(ModelValidationContext mvContext)
 {
     return(MvcValidationHelper.GetRootMetadata(mvContext));
 }