private List <IncomeStatementLine> GetIncomeStatementLines(int dossierId,
                                                                   string beginDate,
                                                                   string endDate,
                                                                   bool isExpense)
        {
            List <IncomeStatementLine> list = new List <IncomeStatementLine>();


            //TODO: replace with a generic method with EF implememntation


            ObjectResult <CreateReport_IncomeStatement_Result> listTmp = _context.CreateReport_IncomeStatement(dossierId, beginDate, endDate, isExpense);

            foreach (var item in listTmp)
            {
                IncomeStatementLine bsl = new IncomeStatementLine();
                bsl.bitmap      = item.bitmap;
                bsl.category    = item.category;
                bsl.subcategory = item.subcategory;
                bsl.total       = item.total ?? 0;

                list.Add(bsl);
            }


            return(list);
        }