public IResult Add(Author author)
        {
            IResult result = BusinessRules.Run(CheckIfAuthorExists(author));

            if (result != null)
            {
                return(result);
            }
            _authorDal.Add(author);
            return(new SuccessResult(Messages.AuthorAdded));
        }
Esempio n. 2
0
 public IResult Add(Author author)
 {
     _authorDal.Add(author);
     return(new SuccessResult(AuthorMessages.AuthorAdded));
 }
Esempio n. 3
0
 public void Add(Author author)
 {
     _authorDal.Add(author);
 }
Esempio n. 4
0
 public IResult Add(Author author)
 {
     _authorDal.Add(author);
     return(new SuccessResult());
 }
Esempio n. 5
0
 public string Add(Author author)
 {
     _authorDal.Add(author);
     return("Yazar başarıyla eklendi");
 }
Esempio n. 6
0
 public Author Add(Author author)
 {
     return(_authorDal.Add(author));
 }