appsetting Remote Validation Enabled code example
Example: mvc remote validation additional table
public JsonResult IsUserNameAvailable(string UserName)
{
return Json(db.Users.Any(u => u.UserName == UserName));
}
public JsonResult IsUserNameAvailable(string UserName)
{
return Json(db.Users.Any(u => u.UserName == UserName));
}