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,14 @@
namespace MVC_SimpleCRUD_Layered.Application.People;
public record SavePersonResult(bool Success, string? PersonName, string? ErrorMessage)
{
public static SavePersonResult Ok(string personName)
{
return new SavePersonResult(true, personName, null);
}
public static SavePersonResult Failed(string errorMessage)
{
return new SavePersonResult(false, null, errorMessage);
}
}