public decimal GetExpenseByCategory(int _catId) { var expense = _expRepo.GetExpenseByCategory(_catId).Sum(x => x.ExpAmount); return(expense); }
// Calculations public List <TblExpenditure> GetExpenseByCategory(int?categoryId) => _expRepo.GetExpenseByCategory(categoryId);