Ejemplo n.º 1
0
 public DashboardDTO()
 {
     Accounts               = new List <Account>();
     Transactions           = new List <Transaction>();
     CreditCards            = new List <CreditCard>();
     StaticFinancialMetrics = new StaticFinancialMetrics();
     TimePeriodMetrics      = new TimeValueOfMoneyMetrics();
 }
 public DashboardViewModel()
 {
     Accounts               = new List <Account>();
     Bills                  = new List <Bill>();
     Expenses               = new List <Expense>();
     Transactions           = new List <Transaction>();
     StaticFinancialMetrics = new StaticFinancialMetrics();
     TimePeriodMetrics      = new TimeValueOfMoneyMetrics();
 }
Ejemplo n.º 3
0
        public TimeValueOfMoneyMetrics RefreshTVMMetrics(DashboardViewModel dashboardVM)
        {
            TimeValueOfMoneyMetrics metric = new TimeValueOfMoneyMetrics();

            metric.OneMonthSavings    = _calc.FutureValue(DateTime.Today.AddMonths(1), dashboardVM.StaticFinancialMetrics.NetIncome);
            metric.ThreeMonthsSavings = _calc.FutureValue(DateTime.Today.AddMonths(3), dashboardVM.StaticFinancialMetrics.NetIncome);
            metric.SixMonthsSavings   = _calc.FutureValue(DateTime.Today.AddMonths(6), dashboardVM.StaticFinancialMetrics.NetIncome);
            metric.OneYearSavings     = _calc.FutureValue(DateTime.Today.AddYears(1), dashboardVM.StaticFinancialMetrics.NetIncome);
            metric.MonthlyExpenses    = dashboardVM.StaticFinancialMetrics.TotalDue;
            metric.MonthlyIncome      = (Convert.ToDecimal(_db.Salaries.Select(s => s.NetIncome).FirstOrDefault()) * 2);


            return(metric);
        }
 public DashboardMetrics()
 {
     StaticMetrics = new StaticFinancialMetrics();
     TVMMetrics    = new TimeValueOfMoneyMetrics();
 }