Ejemplo n.º 1
0
        public SingleObjectModel GetTrialBalance([FromBody] TrialBalanceCommand command)
        {
            base.RequireBody(command);

            using (var usecases = TrialBalanceUseCases.UseCaseInteractor()) {
                TrialBalanceDto trialBalance = usecases.BuildTrialBalance(command);

                return(new SingleObjectModel(this.Request, trialBalance));
            }
        }
Ejemplo n.º 2
0
        public SingleObjectModel GetExcelTrialBalance([FromBody] TrialBalanceCommand command)
        {
            base.RequireBody(command);

            using (var usecases = TrialBalanceUseCases.UseCaseInteractor()) {
                TrialBalanceDto trialBalance = usecases.BuildTrialBalance(command);

                var excelExporter = new ExcelExporter();

                ExcelFileDto excelFileDto = excelExporter.Export(trialBalance, command);

                return(new SingleObjectModel(this.Request, excelFileDto));
            }
        }
        public TrialBalanceUseCasesTests()
        {
            CommonMethods.Authenticate();

            _usecases = TrialBalanceUseCases.UseCaseInteractor();
        }