public ActionResult UpdateRecord(string PnrNumber, BookingFlight Userdata) { try { flight.UpdateRecord(PnrNumber, Userdata); return(Ok("data is successfully updated")); } catch (Exception) { return(BadRequest("Error Is Occured")); } }