protected void GoodHaveValidSupplierAndTransporter(Order order, GoodFullInfo goodFullInfo) { if (goodFullInfo.GoodSuppliers.Count > 0 && goodFullInfo.GoodSuppliers.All(c => c.Id != order.SupplierId)) throw new BusinessRuleException("BR_PO20", "This Good Must Be Buy From Valid Supplier "); if (goodFullInfo.GoodTransporters.Count > 0 && goodFullInfo.GoodTransporters.All(c => c.Id != order.TransporterId)) throw new BusinessRuleException("BR_PO20", "This Good Must Be Buy From Valid Transporter "); }
public override void ValidateGoodSuplierAndTransporter(Order order, GoodFullInfo goodFullInfo) { GoodHaveValidSupplierAndTransporter(order, goodFullInfo); }
//BR_PO20 public virtual void ValidateGoodSuplierAndTransporter(Order order, GoodFullInfo goodFullInfo) { throw new NotImplementedException(); }