public IActionResult SaveRemarksForPosition(string QRFID, string PositionId, string ItineraryId, string ItineraryDaysId, string TLRemarks, string OPSRemarks, string BookingNumber) { try { if (!string.IsNullOrWhiteSpace(BookingNumber)) { OpsBookingItinerarySetReq req = new OpsBookingItinerarySetReq() { BookingNumber = BookingNumber, ItineraryDetails = new ItineraryDetails() { TLRemarks = TLRemarks, OPSRemarks = OPSRemarks, ItineraryDetail_Id = ItineraryId } }; OpsBookingItinerarySetRes res = operationsProviders.SetRemarksForItineraryBuilderDetails(req, token).Result; if (res.ResponseStatus.Status.ToLower() == "success") { return(Json(new { responseText = "Success! Remarks updated successfully." })); } else { return(Content("Error")); } } else { ItinerarySetRes response = new ItinerarySetRes(); ItinerarySetReq request = new ItinerarySetReq(); request.QRFId = QRFID; request.ItineraryId = ItineraryId; request.ItineraryDaysId = ItineraryDaysId; request.PositionId = PositionId; request.TLRemarks = TLRemarks; request.OPSRemarks = OPSRemarks; response = coProviders.SaveRemarks(request, token).Result; if (response.ResponseStatus.Status.ToLower() == "success") { return(Json(new { responseText = "Success! Remarks updated successfully." })); } else { return(Content("Error")); } } } catch (Exception ex) { throw; } }