refactor(DataResult): update to execute if NET

This commit is contained in:
Developer 02 2025-09-30 17:03:39 +02:00
parent e74a740abd
commit 07ab7f0c62

View File

@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
#if NET
using System.Text.Json.Serialization;
namespace DigitalData.Core.Abstraction.Application.DTO;
@ -25,4 +26,5 @@ public class DataResult<T> : Result
/// <returns>A failed <see cref="DataResult{I}"/> with the current messages and notices.</returns>
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
public DataResult<I> ToFail<I>() => Fail<I>().Message(Messages).Notice(Notices);
}
}
#endif