예제 #1
0
        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);
        }
예제 #2
0
        public ActionResult Index()
        {
            var credits = CreditService.GetAll();

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