Add response without data

This commit is contained in:
tekh 2025-08-15 14:51:29 +02:00
parent e85a4986e6
commit 4bb6a6cf18

View File

@ -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;