14 lines
325 B
C#
14 lines
325 B
C#
using ErsatzTV.ViewModels;
|
|
using FluentValidation;
|
|
|
|
namespace ErsatzTV.Validators;
|
|
|
|
public class PlayoutEditViewModelValidator : AbstractValidator<PlayoutEditViewModel>
|
|
{
|
|
public PlayoutEditViewModelValidator()
|
|
{
|
|
RuleFor(p => p.Channel).NotNull();
|
|
RuleFor(p => p.ProgramSchedule).NotNull();
|
|
}
|
|
}
|