public async Task <OpsBookingItinerarySetRes> SetRemarksForItineraryBuilderDetails([FromBody] OpsBookingItinerarySetReq request) { var response = new OpsBookingItinerarySetRes(); try { if (request != null) { var result = await _opsRepository.SetRemarksForItineraryBuilderDetails(request); if (result != null) { response = result; response.ResponseStatus.Status = "Success"; } else { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "Ann Error Occurs."; } } else { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "Booking details can not be blank."; } } catch (Exception ex) { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "An error occurs " + ex.Message; } return(response); }