public TransactionController(ITransactionService transactionService, IUserIDService userIDService) { _transactionService = transactionService; _UserIDService = userIDService; //_httpContextAccessor = httpContextAccessor; //_userDataService = this._userDataService; }
public StatisticsService(ITransactionService transactionService, IUserIDService userIDService, PossessionDataHolder possessionDataHolder) { _TransactionService = transactionService; _UserIDService = userIDService; //possessionDataHolder.Activate(); //transactionService.TransactionAdded += OnTransactionAdded; //int userID = userIDService.GetUserID(); //DateTime date = DateTime.Now; //var firstDayOfMonth = new DateTime(date.Year, date.Month, 1); //var lastDayOfMonth = firstDayOfMonth.AddMonths(1).AddDays(-1); ////StatsLastMonth = new Lazy<Stats>( () => new Stats(new DateTime(date.Year, date.Month, 1).AddMonths(-1), new DateTime(date.Year, date.Month, 1).AddDays(-1), transactionService, userID)); //StatsPastYear = new Lazy<Stats>( () => new Stats(firstDayOfMonth.AddYears(-1), lastDayOfMonth, transactionService, userID)); //StatsPastYearMonthly = new List<Stats>(); //for (int x = 0; x < 12; x++) //{ // Stats stat = new Stats(firstDayOfMonth, lastDayOfMonth, transactionService, userID); // StatsPastYearMonthly.Add(stat); // firstDayOfMonth = firstDayOfMonth.AddMonths(-1); // lastDayOfMonth = firstDayOfMonth.AddMonths(1).AddDays(-1); //} }
public PossessionController(IPossessionsService possessionsService, IUserIDService userIDService) { _possessionsService = possessionsService; _UserIDService = userIDService; }
public StatisticController(IStatisticsService statisticsService, ITransactionService transactionService, IUserIDService userIDService) { _statisticsService = statisticsService; _transactionService = transactionService; _UserIDService = userIDService; }