Skip to content

Commit

Permalink
Update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed May 16, 2024
1 parent 18b0812 commit 625e957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/Ardalis.Result.Sample.Core/Services/PersonService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Result<Person> 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);
Expand All @@ -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
Expand Down

0 comments on commit 625e957

Please sign in to comment.