mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 16:10:16 -04:00
17 lines
449 B
C#
17 lines
449 B
C#
using FluentValidation;
|
|
|
|
namespace ModernKeePass.Application.Entry.Commands.SetFieldValue
|
|
{
|
|
public class SetFieldValueCommandValidator: AbstractValidator<SetFieldValueCommand>
|
|
{
|
|
public SetFieldValueCommandValidator()
|
|
{
|
|
RuleFor(v => v.EntryId)
|
|
.NotNull()
|
|
.NotEmpty();
|
|
RuleFor(v => v.FieldName)
|
|
.NotNull()
|
|
.NotEmpty();
|
|
}
|
|
}
|
|
} |