Exemplo n.º 1
0
        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);
 }
Exemplo n.º 3
0
 public IResult Add(Publisher publisher)
 {
     _publisherDal.Add(publisher);
     return(new SuccessResult());
 }