public IResult Add(Author author) { IResult result = BusinessRules.Run(CheckIfAuthorExists(author)); if (result != null) { return(result); } _authorDal.Add(author); return(new SuccessResult(Messages.AuthorAdded)); }
public IResult Add(Author author) { _authorDal.Add(author); return(new SuccessResult(AuthorMessages.AuthorAdded)); }
public void Add(Author author) { _authorDal.Add(author); }
public IResult Add(Author author) { _authorDal.Add(author); return(new SuccessResult()); }
public string Add(Author author) { _authorDal.Add(author); return("Yazar başarıyla eklendi"); }
public Author Add(Author author) { return(_authorDal.Add(author)); }