Api/NetinaShop.Domain/CommandQueries/Commands/ProductCommands.cs

42 lines
1.0 KiB
C#
Raw Normal View History

namespace NetinaShop.Domain.CommandQueries.Commands;
public sealed record CreateProductCommand(
string PersianName,
string EnglishName,
string Summery,
string ExpertCheck,
string Tags,
string Warranty,
bool BeDisplayed,
double Cost,
double PackingCost,
bool HasExpressDelivery,
int MaxOrderCount,
2024-02-03 10:34:48 +03:30
bool IsSpecialOffer,
Guid BrandId,
Guid CategoryId,
2024-02-03 10:34:48 +03:30
DiscountSDto SpecialOffer,
List<SpecificationSDto> Specifications,
List<StorageFileSDto> Files):IRequest<ProductLDto>;
public sealed record UpdateProductCommand(
Guid Id,
string PersianName,
string EnglishName,
string Summery,
string ExpertCheck,
string Tags,
string Warranty,
bool BeDisplayed,
double Cost,
double PackingCost,
bool HasExpressDelivery,
int MaxOrderCount,
2024-02-03 10:34:48 +03:30
bool IsSpecialOffer,
Guid BrandId,
Guid CategoryId,
2024-02-03 10:34:48 +03:30
DiscountSDto SpecialOffer,
List<SpecificationSDto> Specifications,
List<StorageFileSDto> Files) : IRequest<bool>;
2024-02-03 10:34:48 +03:30
public sealed record DeleteProductCommand(Guid Id) : IRequest<bool>;