/// <summary>
        /// The Edit method, used to edit items in the database
        /// </summary>
        /// <param name="item">The bookcopy</param>
        public void Edit(BookCopy item)
        {
            var copytoedit = bookCopyRepo.Find(item.Id);

            bookCopyRepo.Edit(copytoedit);
        }
Example #2
0
 /// <summary>
 /// The Edit method makes sure that the given Copy object is saved to the database and raises the Updated() event.
 /// </summary>
 /// <param name="a"></param>
 public void Edit(BookCopy c)
 {
     bookCopyRepository.Edit(c);
     // TODO: Raise the Updated event.
 }
 /// <summary>
 /// Calls Edit method in BooCopyRepository
 /// Raises Updated event
 /// </summary>
 /// <param name="item"></param>
 public void Edit(BookCopy item)
 {
     bookCopyRepository.Edit(item);
     OnUpdated(EventArgs.Empty);
 }
 public void Edit(BookCopy b)
 {
     bookCopyRepository.Edit(b);
     OnUpdated();
 }
Example #5
0
 /// <summary>
 /// The Edit method makes sure that the given BookCopy object is saved to the database and raises the Updated() event.
 /// </summary>
 /// <param name="copy">The object to be saved.</param>
 public void Edit(BookCopy copy)
 {
     copyRepository.Edit(copy);
     OnUpdated(new EventArgs());
 }
Example #6
0
 /// <summary>
 /// Sends a specific bok copy object to repository for editing in database and then raises the OnUpdated event.
 /// </summary>
 /// <param name="bookCopy">Book copy object to edit in database.</param>
 public void Edit(BookCopy bookCopy)
 {
     BookCopyRepository.Edit(bookCopy);
     OnUpdated(bookCopy, EventArgs.Empty);
 }