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
371 B
13 lines
371 B
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;
|
|
}
|
|
}
|
|
}
|