Cleaned code
This commit is contained in:
@@ -13,6 +13,5 @@ public class UnlockAchievementDtoValidator : Validator<UnlockAchievementDto>
|
||||
.WithMessage("AchievementId cannot be empty")
|
||||
.GreaterThan(0)
|
||||
.WithMessage("AchievementId must be greater than 0");
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,8 +6,8 @@ namespace BeReadyBackend.Validators.Users;
|
||||
|
||||
public class GetUserDtoValidator : Validator<GetUserDto>
|
||||
{
|
||||
public GetUserDtoValidator() {
|
||||
|
||||
public GetUserDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Id)
|
||||
.NotEmpty()
|
||||
.WithMessage("Id cannot be empty")
|
||||
|
||||
Reference in New Issue
Block a user