Table of Contents

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 ExpressionsService
localizer IStringLocalizer<MasterDataResources>

Methods

ValidateField(FormElementField, string, object, bool)

public string ValidateField(FormElementField field, string fieldId, object value, bool enableErrorLink = true)

Parameters

field FormElementField
fieldId string
value object
enableErrorLink bool

Returns

string

ValidateFields(FormElement, Dictionary<string, object>, PageState, bool)

public Dictionary<string, string> ValidateFields(FormElement formElement, Dictionary<string, object> formValues, PageState pageState, bool enableErrorLink)

Parameters

formElement FormElement
formValues Dictionary<string, object>
pageState PageState
enableErrorLink bool

Returns

Dictionary<string, string>