private static void Validate(SchoolModel schoolModel) { schoolModel.Validate(); if (schoolModel.EndDate == null && (schoolModel.IsCurrent == null || !schoolModel.IsCurrent.Value)) { throw new ValidationErrorsException(new RequiredValidationError("CompletionDate")); } }