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)); }
public IActionResult ViewMaaserGiven() { MaaserRepository rep = new MaaserRepository(_connString, User.Identity.Name); return(View(rep.GetMaaserGiven())); }