Fix nameof arguments in User model (#13216)

pull/13238/head
Natalie Akam 2019-07-10 21:56:12 +01:00 committed by Rick Anderson
parent 5a2d832d3a
commit 12c71c9f3b
1 changed files with 2 additions and 2 deletions

View File

@ -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