public Event Add(Event eventDetails)
 {
     _ctx.Events.Add(eventDetails);
     _ctx.SaveChanges();
     return(eventDetails);
 }
Ejemplo n.º 2
0
 public Book Add(Book bookDetails)
 {
     _ctx.Books.Add(bookDetails);
     _ctx.SaveChanges();
     return(bookDetails);
 }