refactor(DataResult): update to execute if NET
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Text.Json.Serialization;
|
#if NET
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace DigitalData.Core.Abstraction.Application.DTO;
|
namespace DigitalData.Core.Abstraction.Application.DTO;
|
||||||
|
|
||||||
@@ -26,3 +27,4 @@ public class DataResult<T> : Result
|
|||||||
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
|
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
|
||||||
public DataResult<I> ToFail<I>() => Fail<I>().Message(Messages).Notice(Notices);
|
public DataResult<I> ToFail<I>() => Fail<I>().Message(Messages).Notice(Notices);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user