Exemplo n.º 1
0
 public int AddDetail(Room room)
 {
     db.Rooms.Add(room);
     db.SaveChanges();
     return(room.RoomNo);
 }
 public int AddDetail(Booking booking)
 {
     db.Bookings.Add(booking);
     db.SaveChanges();
     return(booking.BookingId);
 }
Exemplo n.º 3
0
 public string AddDetail(Boarder boarder)
 {
     db.Boarders.Add(boarder);
     db.SaveChanges();
     return(boarder.Email);
 }