17 lines
475 B
C#
17 lines
475 B
C#
namespace LiteCharms.Features.CartPackages.Commands;
|
|
|
|
public class DeletePackageItemsCommand : IRequest<Result>
|
|
{
|
|
public Guid PackageId { get; set; }
|
|
|
|
private DeletePackageItemsCommand(Guid packageId) => PackageId = packageId;
|
|
|
|
public static DeletePackageItemsCommand Create(Guid packageId)
|
|
{
|
|
if (packageId == Guid.Empty)
|
|
throw new ArgumentException("Package ID is required", nameof(packageId));
|
|
|
|
return new(packageId);
|
|
}
|
|
}
|