Tableau supplémentaire de validation à distance MVC
public JsonResult IsUserNameAvailable(string UserName)
{
return Json(db.Users.Any(u => u.UserName == UserName));
}
Giamblers