public override string FormatErrorMessage(string name) { return(ValidationLocalization.GetFormattedErrorMessage("exactcount", new object[] { name, Limit })); }
public override string FormatErrorMessage(string name) { return(ValidationLocalization .GetFormattedErrorMessage("exactdimensions", new object[] { name, Width, Height })); }
public override string FormatErrorMessage(string name) { return(ValidationLocalization .GetFormattedErrorMessage("maximumoftype", new object[] { name, Limit, ObjectType.Name })); }
public override string FormatErrorMessage(string name) { return(ValidationLocalization .GetFormattedErrorMessage("maxfilesize", new object[] { name, FormatBytes(_actualBytes), FormatBytes(Limit) })); }
public override string FormatErrorMessage(string name) { return ValidationLocalization .GetFormattedErrorMessage("allowedfileextensions", new object[] { name, string.Join(", ", AllowedExtensions) }); }