public CollateralAssetViewModel(AssetLogicModel asset) { AssetId = asset.AssetId; SecurityName = asset.SecurityData.SecurityName; PaymentMethod = asset.AmortizationType.ToString(); Currency = asset.SecurityData.Currency.ToString(); IsFloating = asset.SecurityData.IsFloating; AllInRate = asset.SecurityData.AllInRate; FloatingIndex = asset.SecurityData.FloatingIndex.ToString(); FloatingIndexCode = asset.SecurityData.FloatingIndexCode.ToString(); PaymentFrequency = asset.SecurityData.PaymentFrequency.ToString(); AccrualMethod = Toolkit.AccrualMethod(asset.SecurityData.AccrualMethod); LegalMaturityDate = DateUtils.IsNormalDate(asset.SecurityData.LegalMaturityDate) ? Toolkit.DateToString(asset.SecurityData.LegalMaturityDate) : "-"; PenultimateDate = DateUtils.IsNormalDate(asset.SecurityData.PenultimateDate) ? Toolkit.DateToString(asset.SecurityData.PenultimateDate) : "-"; Region = asset.SecurityData.Region; ChineseRating = CommUtils.FormatChineseRating(asset.SecurityData.ChineseRating); }