// =========================================== INSERT ============================================= public void InsertTipeHotel(int Harga, int Stok, string Foto, string Deskripsi, int RoomtypeID, int HotelID) { H_Hotel_Roomtype call = new H_Hotel_Roomtype(); { call.Price = Harga; call.Available = Stok; call.Image = Foto; call.Description = Deskripsi; call.H_RoomtypeID = RoomtypeID; call.H_HotelID = HotelID; }; try { _context.H_Hotel_Roomtype.Add(call); var result = _context.SaveChanges(); } catch (Exception ex) { System.Console.Write(ex.InnerException); } }