ContosoUniversityCore icon indicating copy to clipboard operation
ContosoUniversityCore copied to clipboard

Handling server side validation in the UI?

Open dotnetshadow opened this issue 8 years ago • 1 comments

Firstly a great sample to learn about mediatr

I was wondering how would you handle the validation on the server with javascript disabled?

When I ran the sample I noticed that it returns a json validation response for RuleFor(), so in the UI how would you handle that so you can display a nice message to the user?

I noticed that the Create Post method wasn't even called

dotnetshadow avatar Feb 18 '17 08:02 dotnetshadow

TBQH I don't think about that scenario really?

On Sat, Feb 18, 2017 at 3:47 AM, dotnetshadow [email protected] wrote:

Firstly a great sample to learn about mediatr

I was wondering how would you handle the validation on the server with javascript disabled? When I ran the sample I noticed that it returns a json validation response for RuleFor(), so in the UI how would you handle that so you can display a nice message to the user?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbogard/ContosoUniversityCore/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGYMtSTykHcr--3rofuuHu4E-q86mEGks5rdrALgaJpZM4MFDPk .

jbogard avatar Feb 22 '17 22:02 jbogard