public IActionResult Post([FromBody] BookingModel value) { try { var vm = new BookingViewModel(_bookingRepo); var result = vm.SaveBookingDetails(value); return(Ok(result)); } catch (System.Exception ex) { return(BadRequest()); } }