From 12c71c9f3bed1069225205ad69153d7ddd38d8f7 Mon Sep 17 00:00:00 2001 From: Natalie Akam Date: Wed, 10 Jul 2019 21:56:12 +0100 Subject: [PATCH] Fix nameof arguments in User model (#13216) --- aspnetcore/mvc/models/validation/sample/Models/User.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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