예제 #1
0
        private void WriteJournal(String fileName)
        {
            var journalStatementsa = JournalStatements.Select(x => new JournalStatement()
            {
                Account     = "acc",
                Date        = new DateTime(201, 3, 4),
                Description = "dfasf",
                Tag         = "t",
                Value       = -44
            }).ToList();
            JournalGateway gateway = new JournalGateway(fileName);

            gateway.WriteJournal(journalStatementsa);
        }
예제 #2
0
        public async Task <ActionResult> Index()
        {
            try
            {
                var directory = await GetDirectoryAsync();

                var model = new JournalStatements(directory);
                model.Users   = userBusinessLogic.Find(" ");
                model.Journal = statementBusinessLogic.Statement_Find(new StatementSearchCriteria());

                return(View(model));
            }
            catch (Exception ex)
            {
                var exceptionDetails = new ExceptionDetails(ex, "Ошибка при загрузке журнала.");
                var model            = new JournalStatements(exceptionDetails);
                return(View(model));
            }
        }