Wednesday, July 1, 2015

ModelState.IsValid always false

Put this line above ModelState condition and check the values you getting for variable errors.

var errors = ModelState.Values.SelectMany(v => v.Errors);
 
 

No comments:

Post a Comment

How to Create Events Using Microsoft Graph API with Delegated Permissions and MSAL.js

Microsoft Graph API provides powerful capabilities to interact with Microsoft 365 services. In this guide, we’ll explore how to create calen...