create response class to handle http result
This commit is contained in:
parent
d904fded39
commit
11ab4388d0
5
src/Leanetec.EConnect.Domain/Entities/Response.cs
Normal file
5
src/Leanetec.EConnect.Domain/Entities/Response.cs
Normal file
@ -0,0 +1,5 @@
|
||||
namespace Leanetec.EConnect.Domain.Entities;
|
||||
|
||||
public record Response<TData, TError>(bool Ok, TData? Data = null, TError? Error = null)
|
||||
where TData : class
|
||||
where TError : class;
|
||||
Loading…
x
Reference in New Issue
Block a user