Exemplo n.º 1
0
        private ReviewTransportBranchOrientation GetReviewTransportBranchOrientation(TravelReviewViewModel viewModel)
        {
            ReviewTransportBranchOrientation orientation = new ReviewTransportBranchOrientation();

            orientation.OrientationId = viewModel.TransportBranchOrientationId;

            return(orientation);
        }
Exemplo n.º 2
0
        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;
            }
        }