mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 16:10:16 -04:00
17 lines
461 B
C#
17 lines
461 B
C#
![]() |
using FluentValidation;
|
|||
|
|
|||
|
namespace ModernKeePass.Application.Import.Commands.ImportFromCsv
|
|||
|
{
|
|||
|
public class ImportFromCsvCommandValidator : AbstractValidator<ImportFromCsvCommand>
|
|||
|
{
|
|||
|
public ImportFromCsvCommandValidator()
|
|||
|
{
|
|||
|
RuleFor(v => v.FilePath)
|
|||
|
.NotNull()
|
|||
|
.NotEmpty();
|
|||
|
RuleFor(v => v.DestinationGroupId)
|
|||
|
.NotNull()
|
|||
|
.NotEmpty();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|