diff --git a/aspnetcore/mvc/models/validation/sample/Models/User.cs b/aspnetcore/mvc/models/validation/sample/Models/User.cs index 815dd588c1..70ac1382e4 100644 --- a/aspnetcore/mvc/models/validation/sample/Models/User.cs +++ b/aspnetcore/mvc/models/validation/sample/Models/User.cs @@ -10,9 +10,9 @@ namespace ValidationSample.Models #endregion #region snippet_UserNameProperties - [Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(LastName))] - public string FirstName { get; set; } [Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(FirstName))] + public string FirstName { get; set; } + [Remote(action: "VerifyName", controller: "Users", AdditionalFields = nameof(LastName))] public string LastName { get; set; } #endregion