using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace r18.Infrastructure
{
    public class MustBeTrueAttribute : ValidationAttribute
    {

        public override bool IsValid(object value)
        {
            return value is bool && (bool)value;
        } 

    }
}