Initial commit

This commit is contained in:
Kevin Harlay
2026-09-07 13:33:22 +02:00
commit ebfaf6f5ec
295 changed files with 8786 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
using ExpenseTracker.Api.DTOs;
using FluentValidation;
namespace ExpenseTracker.Api.Validators;
public class CreateMonthDtoValidator : AbstractValidator<CreateMonthDto>
{
public CreateMonthDtoValidator()
{
RuleFor(x => x.Year)
.GreaterThanOrEqualTo(2000)
.WithMessage("Year must be 2000 or later.");
RuleFor(x => x.Month)
.InclusiveBetween(1, 12)
.WithMessage("Month must be between 1 and 12.");
RuleFor(x => x.DefaultSalary)
.GreaterThanOrEqualTo(0)
.WithMessage("DefaultSalary must be zero or positive.");
}
}