You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
363 B

1 year ago
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;
}
}
}