Beispiel #1
0
 /// <summary>
 /// Method to find an author in the database.
 /// </summary>
 /// <param name="id">int</param>
 /// <returns>Author if found, otherwise null.</returns>
 public Author FindAuthor(int id)
 {
     return(authorRepository.Find(id));
 }
Beispiel #2
0
        public Author Find(Author author)
        {
            int id = author.Id;

            return(_authorRepository.Find(id));
        }
Beispiel #3
0
 public Author FindAuthor(int key)
 {
     return(authorRepository.Find(key));
 }
        /// <summary>
        /// Method to edit author
        /// </summary>
        /// <param name="item">author to edit</param>
        public void Edit(Author item)
        {
            var authortoedit = authorRepo.Find(item.Id);

            authorRepo.Edit(authortoedit);
        }