From 625e9578a1c551475efa16699368e2482af10751 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Thu, 16 May 2024 15:16:08 -0400 Subject: [PATCH] Update messages --- sample/Ardalis.Result.Sample.Core/Services/PersonService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/Ardalis.Result.Sample.Core/Services/PersonService.cs b/sample/Ardalis.Result.Sample.Core/Services/PersonService.cs index 8ddcf26..62028c0 100644 --- a/sample/Ardalis.Result.Sample.Core/Services/PersonService.cs +++ b/sample/Ardalis.Result.Sample.Core/Services/PersonService.cs @@ -28,7 +28,7 @@ public Result Create(string firstName, string lastName) if (person.Forename == _existPerson.Forename && person.Surname == _existPerson.Surname) { - return Result.Conflict($"Person ({person.Forename} {person.Surname}) is exist"); + return Result.Conflict($"Person ({person.Forename} {person.Surname}) already exists in the system"); } return Result.Success(person); @@ -38,7 +38,7 @@ public Result Remove(int id) { if (!_knownIds.Any(knownId => knownId == id)) { - return Result.NotFound("Person Not Found"); + return Result.NotFound($"Person with id {id} Not Found"); } //Pretend removing person