Beispiel #1
0
        // GET: Payments
        public ActionResult Dashboard()
        {
            var finacialYear = _financialYearAppService.GetActiveFinancialYear();
            var userInfo     = _userAppService.GetLoggedInUser();

            var Dashboard = new PaymentsDashboard
            {
                TotalCollection    = _billAppService.GetTotalPaymentsAmountByStation(_stationAppService.GetStation(userInfo.StationId), finacialYear).Sum(),
                CollectionPerMonth = _billAppService.GetTotalMonthPaymentsAmountByStation(_stationAppService.GetStation(userInfo.StationId), finacialYear).Sum()
            };

            return(View(Dashboard));
        }