private ReviewTransportBranchOrientation GetReviewTransportBranchOrientation(TravelReviewViewModel viewModel) { ReviewTransportBranchOrientation orientation = new ReviewTransportBranchOrientation(); orientation.OrientationId = viewModel.TransportBranchOrientationId; return(orientation); }
private void FillOrientationIfItIsNecessary(ReviewTransport transport) { ReviewTransportBranch branch = transport.ReviewTransportBranch; ReviewTransportBranchOrientation orientation = branch.ReviewTransportBranchOrientation; if (String.IsNullOrEmpty(orientation.Description)) { TransportBranchOrientation existingOrientation = this._transportService.GetTransportBranchOrientationById(transport.TransportId, branch.BranchId, orientation.OrientationId); orientation.Description = existingOrientation.Description; } }