示例#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);
 }
示例#3
0
 public string AddDetail(Boarder boarder)
 {
     db.Boarders.Add(boarder);
     db.SaveChanges();
     return(boarder.Email);
 }