Example #1
0
 public void Add(Genre genre)
 {
     genre.DateCreated = DateTime.Now;
     _context.Add(genre);
     _context.SaveChanges();
 }
Example #2
0
 public void Add(Author author)
 {
     author.DateCreated = DateTime.Now;
     _context.Add(author);
     _context.SaveChanges();
 }
Example #3
0
 public void Add(Book book)
 {
     book.DateCreated = DateTime.Now;
     _context.Add(book);
     _context.SaveChanges();
 }
Example #4
0
 public void Add(Publisher pub)
 {
     //pub.DateCreated = DateTime.Now;
     _context.Add(pub);
     _context.SaveChanges();
 }
Example #5
0
 public void Add(Category category)
 {
     category.DateCreated = DateTime.Now;
     _context.Add(category);
     _context.SaveChanges();
 }