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