Add response without data
This commit is contained in:
@@ -1,5 +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;
|
||||
public record Response<TError>(bool Ok, TError? Error = null) where TError : class;
|
||||
|
||||
public record Response<TData, TError>(bool Ok, TData? Data = null, TError? Error = null) where TData : class where TError : class;
|
||||
Reference in New Issue
Block a user