public LifeStyleDto(LifeStyleAppDto appdto) { Bronze = BillingHelper.Round(appdto.Bronze); Silver = BillingHelper.Round(appdto.Silver); Gold = BillingHelper.Round(appdto.Gold); Platinum = BillingHelper.Round(appdto.Platinum); ForecastBronze = BillingHelper.Round(appdto.ForecastBronze); ForecastSilver = BillingHelper.Round(appdto.ForecastSilver); ForecastGold = BillingHelper.Round(appdto.ForecastGold); ForecastPlatinum = BillingHelper.Round(appdto.ForecastPlatinum); }
public BalanceDto(SIN sin) { CurrentBalance = BillingHelper.Round(sin.Wallet.Balance); CurrentScoring = Math.Round(sin.Scoring.CurrentFix + sin.Scoring.CurerentRelative, 2); SIN = sin.Passport.Sin; PersonName = sin.Passport.PersonName; Metatype = sin.Passport.Metatype?.Name ?? "неизвестно"; Citizenship = sin.Passport.Citizenship ?? "неизвестно"; Viza = sin.Passport.Viza ?? "неизвестно"; Pledgee = sin.Passport.Mortgagee ?? "неизвестно"; Id = ModelId; }