Unable to Validate Existing email Id using [Remote] data annotation attribute

后端 未结 1 781
不思量自难忘°
不思量自难忘° 2020-12-04 04:01

I want to validate existence of Email Id in database using [Remote] data Annotation in Model. But when I call a remote JsonResult Action method the parameter will be null an

相关标签:
1条回答
  • 2020-12-04 04:46

    The name of your property is Email. Change the signature of your action method to match

    public JsonResult IsEmailIdExists(string Email)
    {
      .....
    
    0 讨论(0)
提交回复
热议问题