/// <summary>
 /// Loads custom error messages to override the default values.
 /// </summary>
 /// <param name="messages">Custom validation error messages.</param>
 public static void SetCustomMessages(ValidationExtensionMessages messages)
 {
     _messages = messages;
 }
 /// <summary>
 /// Resets the error messages to the default values.
 /// </summary>
 public static void SetDefaultMessages()
 {
     _messages = new ValidationExtensionMessages();
 }