Beispiel #1
0
        public IActionResult Index()
        {
            MaaserRepository rep = new MaaserRepository(_connString, User.Identity.Name);
            IndexViewModel   vm  = new IndexViewModel
            {
                MaaserGiven      = rep.GetMaaserGiven(),
                MoneyEarned      = rep.GetMoneyEarned(),
                TotalEarned      = rep.GetTotalEarned(),
                TotalMaaserGiven = rep.GetTotalMaaserGiven(),
                TotalOwe         = rep.GetStillOwe()
            };

            return(View(vm));
        }
Beispiel #2
0
        public IActionResult ViewMaaserGiven()
        {
            MaaserRepository rep = new MaaserRepository(_connString, User.Identity.Name);

            return(View(rep.GetMaaserGiven()));
        }