public double Reservation(int CustomerId, int RecieptId, DateTime Arrival, DateTime Depature, int RoomQuantity, string RoomType,string CustomerName, string Address, int ContactNumber, int PassportId, string email) { DataSetHotelTableAdapters.bookingTableAdapter reservation = new HotelWebService.DataSetHotelTableAdapters.bookingTableAdapter(); int ID = 0; try { ID = (int)reservation.getMaxId() + 1; } catch (Exception ee) { ID = 1; } DataSetHotelTableAdapters.customerTableAdapter customer = new HotelWebService.DataSetHotelTableAdapters.customerTableAdapter(); reservation.Insert(RecieptId,CustomerId, Arrival, Depature, RoomQuantity, RoomType, true); customer.Insert(CustomerId, CustomerName, Address, ContactNumber, PassportId, email); double total =(double)getMaxPrice(RoomType) * RoomQuantity; return total; }