public void EditOrder(Order order, string clientId) { IValidator validator = OrderValidator.CreateValidator(order, true); validator.Validate(); repository.EditOrder(order, clientId); }
public void NewOrder(Order order, string clientId) { IValidator validator = OrderValidator.CreateValidator(order, false); validator.Validate(); repository.NewOrder(order, clientId); }