/// <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()); } }
// Space to create custom functions to search, edit, delete authors public void Edit(Author a) { authorRepository.Edit(a); OnUpdated(); }
/// <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); }
/// <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()); }
/// <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. }
/// <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); }
/// <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); }