feat: Hinzufügen der ToFail-Methode zur DataResult-Klasse zur Umwandlung in einen Fehlerzustand mit Nachrichten und Hinweisen.
This commit is contained in:
parent
73ea081f7d
commit
4ed0bbc21f
@ -6,5 +6,7 @@ namespace DigitalData.Core.DTO
|
||||
{
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public required T Data { get; set; }
|
||||
|
||||
public DataResult<I> ToFail<I>() => Fail<I>().Message(Messages).Notice(Notices);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user