MVC (layered variant)

This commit is contained in:
Boris Milašinović
2026-04-26 13:40:03 +02:00
parent 0ee1b22f61
commit 1415005b82
50 changed files with 2130 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
namespace MVC_SimpleCRUD_Layered.Application.People;
public record DeletePersonResult(bool Found, bool Success, string? PersonName, string? ErrorMessage)
{
public static DeletePersonResult NotFound()
{
return new DeletePersonResult(false, false, null, null);
}
public static DeletePersonResult Deleted(string personName)
{
return new DeletePersonResult(true, true, personName, null);
}
public static DeletePersonResult Failed(string personName, string errorMessage)
{
return new DeletePersonResult(true, false, personName, errorMessage);
}
}