Ejemplo n.º 1
0
        public IActionResult Index(bool flowResult = false)
        {
            ViewBag.flowResult = flowResult;
            var statements = dAO.GetStatements();

            return(View(statements));
        }
Ejemplo n.º 2
0
        public IActionResult Index()
        {
            var statementDAO = new StatementDAO();
            var statements   = new List <StatementViewModel>();

            try
            {
                statements = statementDAO.GetStatements(true);
            }
            catch (Exception)
            {
                statements = new List <StatementViewModel>();
            }

            return(View(statements));
        }