ValidationModelError Method

Invoked when an issue has been found while running the validator.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static ValidationModel Error(
	StatusCode statusCode,
	string property,
	string i18NKey
)

Parameters

statusCode  StatusCode
The code of the issue.
property  String
The property containing the issue.
i18NKey  String
The localization string directing towards a human-readable string representing the issue.

Return Value

ValidationModel
A validation model containing an error status

See Also