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); }
public ActionResult Index() { var credits = CreditService.GetAll(); return(View(credits.Select(e => e.ToCredit(SystemInformationService)))); }
public IActionResult GetCredits() { return(Ok(_creditService.GetAll())); }