예제 #1
0
        internal ValidationResult Validate()
        {
            ValidationResult v = new ValidationResult();

            v.AddIfNullOrEmpty(UniqueId, "UniqueID");
            v.AddIfNull(Images, "Images");
            v.AddIfNull(GalleryImages, "GalleryImages");
            v.AddIfNullOrEmpty(Title, "UniqueID");
            v.AddIfNull(Formula, "Formula");
            v.AddIfEmpty(Content, "Content must have at least 1 element.");

            return(v);
        }