IsFailed-Eigenschaft zur Result-Klasse hinzugefügt, um den Fehlerzustand bequem zu überprüfen.
This commit is contained in:
parent
401e742ea3
commit
f21944f177
@ -6,6 +6,8 @@ namespace DigitalData.Core.DTO
|
|||||||
{
|
{
|
||||||
public bool IsSuccess { get; set; } = false;
|
public bool IsSuccess { get; set; } = false;
|
||||||
|
|
||||||
|
public bool IsFailed => !IsSuccess;
|
||||||
|
|
||||||
public List<string> Messages { get; init; } = new();
|
public List<string> Messages { get; init; } = new();
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user