Class FieldValidationService
- Namespace
- JJMasterData.Core.DataManager.Services
- Assembly
- JJMasterData.Core.dll
public class FieldValidationService
- Inheritance
-
FieldValidationService
- Inherited Members
Constructors
FieldValidationService(ExpressionsService, IStringLocalizer<MasterDataResources>)
public FieldValidationService(ExpressionsService expressionsService, IStringLocalizer<MasterDataResources> localizer)
Parameters
expressionsService
ExpressionsServicelocalizer
IStringLocalizer<MasterDataResources>
Methods
ValidateField(FormElementField, string, object, bool)
public string ValidateField(FormElementField field, string fieldId, object value, bool enableErrorLink = true)
Parameters
field
FormElementFieldfieldId
stringvalue
objectenableErrorLink
bool
Returns
ValidateFields(FormElement, Dictionary<string, object>, PageState, bool)
public Dictionary<string, string> ValidateFields(FormElement formElement, Dictionary<string, object> formValues, PageState pageState, bool enableErrorLink)
Parameters
formElement
FormElementformValues
Dictionary<string, object>pageState
PageStateenableErrorLink
bool