public IActionResult Index()
        {
            var archiveCalculatedScores = _postgresContext.ArchiveCalculatedScores
                                          .Select(x => x.CalculatedScoreId).ToList();

            return(View(_calculatedScoreService.All()
                        .Where(x => !archiveCalculatedScores.Contains(x.Id))
                        .Select(cs => new CalculatedScoreVM()
            {
                Id = cs.Id,
                Title = cs.Title,
                Balance = _infoMoneyService.GetMoneyWorkerBalance(_db, cs.Id)
            })
                        ));
        }
Пример #2
0
        public decimal CashOnHand(ShopContext db, int id)
        {
            var res = _infoMoneyService.GetMoneyWorkerBalance(db, id);

            return(res);
        }