Add MediatR commands/queries/handlers and DTOs

This commit is contained in:
lumijiez
2025-05-27 13:13:56 +03:00
parent 89ac29c1fd
commit 6e59f46cf0
20 changed files with 452 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using MediatR;
using Printbase.Application.Products.Dtos;
namespace Printbase.Application.Products.Commands;
public class CreateProductVariantCommand : IRequest<ProductVariantDto>
{
public Guid ProductId { get; set; }
public string Size { get; set; } = null!;
public string? Color { get; set; }
public decimal Price { get; set; }
public string? ImageUrl { get; set; }
public string Sku { get; set; } = null!;
public int StockQuantity { get; set; }
public bool IsActive { get; set; } = true;
}