public AccountReportModel GenerateAccountReport()
        {
            AccountReportModel result = new AccountReportModel();

            {
                result.DevelopmentFundAccount =
                    Mapper.Map <ORMLibrary.Account, AccountModel>(AccountService.GetDevelopmentFundAccount());
                result.CashdeskAccount =
                    Mapper.Map <ORMLibrary.Account, AccountModel>(AccountService.GetCashDeskAccount());
                result.Credits  = CreditService.GetAll();
                result.Deposits = DepositService.GetAll();
            }
            return(result);
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var credits = CreditService.GetAll();

            return(View(credits.Select(e => e.ToCredit(SystemInformationService))));
        }
Esempio n. 3
0
 public IActionResult GetCredits()
 {
     return(Ok(_creditService.GetAll()));
 }