Retructured solution
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user