public void Save(Bird bird) { if (!_validator.IsValid(bird)) { throw new ArgumentException("The bird is not valid"); } _repository.SaveOrUpdate(bird); }
public void Save(Bird bird) { if (!_validator.IsValid(bird)) { throw new ArgumentException("The bird is not valid"); } _repository.SaveOrUpdate(bird); }