Added shared projects

This commit is contained in:
Khwezi Mngoma
2026-05-03 16:10:27 +02:00
parent 66c08dc54b
commit 1b997013bb
81 changed files with 4507 additions and 1 deletions
@@ -0,0 +1,24 @@
using LiteCharms.Models;
namespace LiteCharms.Features.Leads.Queries;
public class GetLeadsQuery : IRequest<Result<Lead[]>>
{
public DateOnly From { get; set; }
public DateOnly To { get; set; }
private GetLeadsQuery(DateOnly from, DateOnly to)
{
From = from;
To = to;
}
public static GetLeadsQuery Create(DateOnly from, DateOnly to)
{
if (from > to)
throw new ArgumentException("From date cannot be greater than To date.");
return new(from, to);
}
}