Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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;
 }