public void Add(Genre genre) { genre.DateCreated = DateTime.Now; _context.Add(genre); _context.SaveChanges(); }
public void Add(Author author) { author.DateCreated = DateTime.Now; _context.Add(author); _context.SaveChanges(); }
public void Add(Book book) { book.DateCreated = DateTime.Now; _context.Add(book); _context.SaveChanges(); }
public void Add(Publisher pub) { //pub.DateCreated = DateTime.Now; _context.Add(pub); _context.SaveChanges(); }
public void Add(Category category) { category.DateCreated = DateTime.Now; _context.Add(category); _context.SaveChanges(); }