public OperationViewModel(OperationViewModel model, int annexNumber) { IsAnnexProvided = model.IsAnnexProvided; reasonForExport = model.ReasonForExport; OperationCodes = model.OperationCodes; technologyEmployedDetails = model.TechnologyEmployedDetails; furtherDetails = model.FurtherDetails ?? string.Empty; annexProvided = GetAnnexProvidedText(model, annexNumber); }
private string GetAnnexProvidedText(OperationViewModel model, int annexNumber) { var text = string.Empty; if (model.IsAnnexProvided || !string.IsNullOrEmpty(model.FurtherDetails)) { text = "See Annex " + annexNumber; } return text; }