public IResult Add(Publisher publisher) { IResult result = BusinessRules.Run(CheckIfPublisherExists(publisher)); if (result != null) { return(result); } _publisherDal.Add(publisher); return(new SuccessResult(Messages.PublisherAdded)); }
public void Add(Publisher publisher) { _publisherDal.Add(publisher); }
public IResult Add(Publisher publisher) { _publisherDal.Add(publisher); return(new SuccessResult()); }