public Event Add(Event eventDetails)
 {
     _ctx.Events.Add(eventDetails);
     _ctx.SaveChanges();
     return(eventDetails);
 }
예제 #2
0
 public Book Add(Book bookDetails)
 {
     _ctx.Books.Add(bookDetails);
     _ctx.SaveChanges();
     return(bookDetails);
 }