Table of Contents

Class ModelStateWrapper

Namespace
JJMasterData.WebApi.Models
Assembly
JJMasterData.WebApi.dll
public class ModelStateWrapper : IValidationDictionary
Inheritance
ModelStateWrapper
Implements
Inherited Members

Constructors

ModelStateWrapper(IActionContextAccessor)

public ModelStateWrapper(IActionContextAccessor actionContextAccessor)

Parameters

actionContextAccessor IActionContextAccessor

Properties

Errors

public IEnumerable<string> Errors { get; }

Property Value

IEnumerable<string>

IsValid

public bool IsValid { get; }

Property Value

bool

Methods

AddError(string, string)

public void AddError(string key, string errorMessage)

Parameters

key string
errorMessage string

RemoveError(string)

public void RemoveError(string key)

Parameters

key string