Add two basic CQRS commands/queries

This commit is contained in:
lumijiez
2025-05-05 00:01:30 +03:00
parent d9332cef96
commit 6e1a1b2429
11 changed files with 312 additions and 29 deletions

View File

@@ -0,0 +1,14 @@
namespace Printbase.Application.Products.Dtos;
public class ProductVariantDto
{
public Guid Id { get; set; }
public string? Color { get; set; }
public string? Size { get; set; }
public decimal Price { get; set; }
public decimal? Discount { get; set; }
public decimal DiscountedPrice => Discount is > 0 ? Price - Price * Discount.Value / 100m : Price;
public int Stock { get; set; }
public string? SKU { get; set; }
public bool IsActive { get; set; }
}