Files
components/LiteCharms.Features/Quotes/Commands/UpdateQuoteStatusCommand.cs
T
Khwezi Mngoma 83f51c6a23 Added notifications
Added shopping cart and items
Added quotes
Refactored relatinoships
Migrated changes
Refactored cqrs commands and queries
Refactored mappings
2026-05-05 23:59:31 +02:00

25 lines
613 B
C#

using LiteCharms.Models;
namespace LiteCharms.Features.Quotes.Commands;
public class UpdateQuoteStatusCommand : IRequest<Result>
{
public Guid QuoteId { get; set; }
public QuoteStatus Status { get; set; }
private UpdateQuoteStatusCommand(Guid quoteId, QuoteStatus status)
{
QuoteId = quoteId;
Status = status;
}
public static UpdateQuoteStatusCommand Create(Guid quoteId, QuoteStatus status)
{
if(quoteId == Guid.Empty)
throw new ArgumentException("Quote ID cannot be empty.", nameof(quoteId));
return new(quoteId, status);
}
}