public ActionResult CancelBooking(long id) { Booking booking = _hotelReservationService.GetRoomBookById(id); booking.Status = Model.HMS.Entity.Booking.EntityStatus.Cancelled; booking.Iscancel = true; _hotelReservationService.UpdateBooking(booking); return(Json(new { isSuccess = true, Text = "Cancelled Successfully" })); }