Added support for notifications

This commit is contained in:
Khwezi Mngoma
2026-05-05 14:36:46 +02:00
parent f5c9557f59
commit 4b822c63b2
19 changed files with 230 additions and 12 deletions
@@ -0,0 +1,18 @@
using LiteCharms.Models;
namespace LiteCharms.Features.Products.Queries;
public class GetProductPricesQuery : IRequest<Result<ProductPrice[]>>
{
public int MaxRecords { get; set; }
private GetProductPricesQuery(int maxRecords = 1000) => MaxRecords = maxRecords;
public static GetProductPricesQuery Create(int maxRecords = 1000)
{
if (maxRecords <= 0)
throw new ArgumentOutOfRangeException(nameof(maxRecords), "MaxRecords must be greater than zero.");
return new(maxRecords);
}
}