From ea93e685c737236ab08d5444065cc550bba17afa Mon Sep 17 00:00:00 2001 From: Lars Gyrup Brink Nielsen Date: Mon, 16 May 2016 01:01:39 +0200 Subject: [PATCH] Converted to string interpolation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code like it’s 2016 :-) --- aspnet/mvc/models/validation/sample/UsersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet/mvc/models/validation/sample/UsersController.cs b/aspnet/mvc/models/validation/sample/UsersController.cs index 6fb317349c..95c99c6ee7 100644 --- a/aspnet/mvc/models/validation/sample/UsersController.cs +++ b/aspnet/mvc/models/validation/sample/UsersController.cs @@ -16,7 +16,7 @@ namespace MVCMovie.Controllers { if (!this.userRepo.VerifyEmail()) { - return Json(data: string.Format("Email {0} is already in use.", email)); + return Json(data: $"Email {email} is already in use."); } return Json(data: true);