using EnvelopeGenerator.Application.Common.Commands;
using EnvelopeGenerator.Domain.Entities;
using System.Linq.Expressions;
namespace EnvelopeGenerator.Application.DocStatus.Commands;
///
///
///
///
public record DocStatusUpdateDto(string? Value);
///
///
///
public record UpdateDocStatusCommand : UpdateCommand
{
///
///
///
public int EnvelopeId { get; set; }
///
///
///
public int ReceiverId { get; set; }
///
/// Gets or sets the display value associated with the status.
///
public string? Value { get; set; }
///
///
///
///
public override Expression> BuildQueryExpression()
{
return ds => ds.EnvelopeId == EnvelopeId && ds.ReceiverId == ReceiverId;
}
}