public ActionResult RemoveDestinationFromTrip(int tripStepId, int tripId) { var _model = new RemoveDestinationFromTripViewModel(); BlViewTrip tripObj = null; var blError = TripManager.GetTripstepDetailsById(tripStepId, out tripObj); if (blError.ErrorCode != 0) { throw new ApplicationException(blError.ErrorMessage); } _model.DlTripStep = tripObj.DlTripStepsView[0]; _model.DlTrip = tripObj.DlTripView; _model.DlBookingsView = tripObj.DlBookingsView; _model.DlTransportsBookingsView = tripObj.DlTransportsBookingsView; return(View(_model)); }