コード例 #1
0
        public decimal GetTotalFinanceFlow()
        {
            decimal financeFlow = 0;
            var     notes       = _financeNoteRepository.GetAll();

            foreach (var note in notes)
            {
                financeFlow += note.FinanceAmount;
            }

            return(financeFlow);
        }
コード例 #2
0
 public IEnumerable <FinanceNote> GetAllNotes()
 {
     return(_financeNoteRepository.GetAll());
 }