Class QueryResponseDto<T>
- Namespace
- Raytha.Application.Common.Models
- Assembly
- Raytha.Application.dll
public record QueryResponseDto<T> : IQueryResponseDto<T>, IEquatable<QueryResponseDto<T>>
Type Parameters
T
- Inheritance
-
QueryResponseDto<T>
- Implements
-
- Inherited Members
-
Constructors
QueryResponseDto(IEnumerable<ValidationFailure>)
public QueryResponseDto(IEnumerable<ValidationFailure> errors)
Parameters
errors
IEnumerable<ValidationFailure>
QueryResponseDto(string, string)
public QueryResponseDto(string propertyName, string error)
Parameters
propertyName
string
error
string
QueryResponseDto(T)
public QueryResponseDto(T result)
Parameters
result
T
Properties
Error
public string Error { get; }
Property Value
- string
Result
Property Value
- T
Success
public bool Success { get; }
Property Value
- bool
Methods
GetErrors()
public IEnumerable<ValidationFailure> GetErrors()
Returns
- IEnumerable<ValidationFailure>