Ejemplo n.º 1
0
 public void Validate(Product entity)
 {
     if (!entity.HasMinQuantity)
     {
         Message            = "Product quantity must be greater than 5";
         StatusOfValidation = StatusOfValidation.Error;
     }
 }
 public void Validate(Product entity)
 {
     if (string.IsNullOrEmpty(entity.Name))
     {
         Message            = "Name of product required";
         StatusOfValidation = StatusOfValidation.Error;
     }
 }