Пример #1
0
 /// <summary>
 ///
 /// </summary>
 public IEnumerable <KeyValuePair <string, double> > TresoryPerMonth(int numberOfMonths = 12)
 => DateTimeHelper.EachMonth(new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(-numberOfMonths), new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1))
 .Select(date => new KeyValuePair <string, double>(date.Month.ToString("MMM"),
                                                   TreasuryManager.StaticGetSolde(date.Date, date.Date.AddMonths(1).AddDays(-1))));
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 public IEnumerable <KeyValuePair <string, double> > IncomePerMonth(int numberOfMonths = 12)
 => DateTimeHelper.EachMonth(new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(-numberOfMonths), new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1))
 .Select(month => new KeyValuePair <string, double>(month.ToString("MMM"),
                                                    TreasuryManager.StaticGetTotalRecette(month.Date, month.Date.AddMonths(1).AddDays(-1))));