using System.ComponentModel.DataAnnotations; namespace CK.SCP.Models.Attributes { public class BaseTableValidation { public static ValidationResult IsNullOrEmpty(string value, string error) { if (string.IsNullOrEmpty(value)) return new ValidationResult(error); return ValidationResult.Success; } } }