daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Jul 17th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modelState.AddModelError(violation.PropertyName, violation.ErrorMessage);
  2. modelState.SetModelValue(violation.PropertyName, new ValueProviderResult(violation.AttemptedValue, violation.AttemptedValue == null ? string.Empty : violation.AttemptedValue.ToString(), Thread.CurrentThread.CurrentCulture));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top