15 lines
359 B
C#
15 lines
359 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();
|
|
}
|
|
}
|
|
}
|