Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using ExpenseTracker.Api.DTOs;
|
||||
using FluentValidation;
|
||||
|
||||
namespace ExpenseTracker.Api.Validators;
|
||||
|
||||
public class UpdateDefaultSalaryDtoValidator : AbstractValidator<UpdateDefaultSalaryDto>
|
||||
{
|
||||
public UpdateDefaultSalaryDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Value)
|
||||
.GreaterThanOrEqualTo(0)
|
||||
.WithMessage("Value must be greater than or equal to 0.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user