コード例 #1
0
 /// <summary>
 /// Method to edit an existing author in the database.
 /// </summary>
 /// <param name="author">Author</param>
 public void EditAuthor(Author author)
 {
     authorRepository.Edit(author);
     if (null != Updated)
     {
         Updated.Invoke(this, new EventArgs());
     }
 }
コード例 #2
0
        // Space to create custom functions to search, edit, delete authors

        public void Edit(Author a)
        {
            authorRepository.Edit(a);
            OnUpdated();
        }
コード例 #3
0
 /// <summary>
 /// Calls Edit method in AuthorRepository
 /// Rases Updated Event
 /// </summary>
 /// <param name="a"></param>
 public void Edit(Author a)
 {
     authorRepository.Edit(a);
     OnUpdated(EventArgs.Empty);
 }
コード例 #4
0
        /// <summary>
        /// The Edit method makes sure that the given Author object is saved to the database and raises the Updated() event.
        /// </summary>
        /// <param name="a">Author object to bes saved.</param>
        public void Edit(Author a)
        {
            authorRepository.Edit(a);

            OnUpdated(new EventArgs());
        }
コード例 #5
0
 /// <summary>
 /// The Edit method makes sure that the given Book object is saved to the database and raises the Updated() event.
 /// </summary>
 /// <param name="a"></param>
 public void Edit(Author a)
 {
     authorRepository.Edit(a);
     // TODO: Raise the Updated event.
 }
コード例 #6
0
        /// <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);
        }
コード例 #7
0
ファイル: AuthorService.cs プロジェクト: LinusHuzell/Library
 /// <summary>
 /// Sends a specific author object to repository for editing in database and then raises the OnUpdated event.
 /// </summary>
 /// <param name="author">Author object to edit in database.</param>
 public void Edit(Author author)
 {
     AuthorRepository.Edit(author);
     OnUpdated(author, EventArgs.Empty);
 }