/// <summary> /// Adds the specified validation with a custom severity. /// </summary> /// <param name="field">The field.</param> /// <param name="message">The message.</param> /// <param name="severity"> </param> protected void Add(string field, string message, ValidationSeverity severity) { var error = ValidationFactory.Create(field, message, severity); _results.InternalAdd(error); }
/// <summary> /// Adds the specified validation. /// The severity is set at "Error" level. /// </summary> /// <param name="field">The field.</param> /// <param name="message">The message.</param> /// <param name="entityID">The entity ID.</param> protected void Add(string field, string message, Guid entityID) { var error = ValidationFactory.Create(field, message, entityID); _results.InternalAdd(error); }
/// <summary> /// Adds the specified validation. /// The severity is set at "Error" level. /// </summary> /// <param name="field">The field.</param> protected void Add(string field) { var error = ValidationFactory.Create(field); _results.InternalAdd(error); }
/// <summary> /// Adds the specified validation with a custom severity. /// </summary> /// <param name="field">The field.</param> /// <param name="entityID">The entity ID.</param> /// <param name="severity">The severity.</param> protected void Add(string field, Guid entityID, ValidationSeverity severity) { var error = ValidationFactory.Create(field, entityID, severity); _results.InternalAdd(error); }
/// <summary> /// Adds the specified validation. /// The severity is set at "Error" level. /// </summary> /// <param name="field">The field.</param> /// <param name="message">The message.</param> public void Add(string field, string message) { var error = ValidationFactory.Create(field, message); _errors.Add(error); }
/// <summary> /// Adds the specified validation with a custom severity. /// </summary> /// <param name="field">The field.</param> /// <param name="message">The message.</param> /// <param name="entityID">The entity ID.</param> /// <param name="severity">The severity.</param> public void Add(string field, string message, Guid entityID, ValidationSeverity severity) { var error = ValidationFactory.Create(field, message, entityID, severity); _errors.Add(error); }
/// <summary> /// Adds the specified validation with a custom severity. /// </summary> /// <param name="field">The field.</param> /// <param name="severity"> </param> public void Add(string field, ValidationSeverity severity) { var error = ValidationFactory.Create(field, severity); _errors.Add(error); }
/// <summary> /// Adds the specified validation. /// The severity is set at "Error" level. /// </summary> /// <param name="field">The field.</param> /// <param name="entityID">The entity ID.</param> public void Add(string field, Guid entityID) { var error = ValidationFactory.Create(field, entityID); _errors.Add(error); }
/// <summary> /// Adds the specified validation. /// The severity is set at "Error" level. /// </summary> /// <param name="field">The field.</param> public void Add(string field) { var error = ValidationFactory.Create(field); _errors.Add(error); }