Added package management
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace LiteCharms.Features.CartPackages.Commands;
|
||||
|
||||
public class CreatePackageCommand : IRequest<Result<Guid>>
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
private CreatePackageCommand(string? name, string? description)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
}
|
||||
|
||||
public static CreatePackageCommand Create(string? name, string? description)
|
||||
{
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(name, nameof(name));
|
||||
|
||||
ArgumentException.ThrowIfNullOrWhiteSpace(description, nameof(description));
|
||||
|
||||
return new(name, description);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user