using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using VOL.Core.Extensions; using VOL.Core.Filters; namespace VOL.Core.ObjectActionValidator { public class NullObjectModelValidator : IObjectModelValidator { public void Validate( ActionContext actionContext, ValidationStateDictionary validationState, string prefix, object model) { if (string.IsNullOrEmpty(prefix)) { actionContext.ModelValidator(prefix, model); return; } } } }