Exemple #1
0
        // GET: Bills
        public ActionResult Index()
        {
            try
            {
                Logger.Instance.DataFlow("Index");
                BillViewModel billVM = new BillViewModel();
                billVM.Bills   = _billManager.GetAllBills();
                billVM.Metrics = _billManager.GetBillMetrics();

                return(View(billVM));
            }
            catch (Exception e)
            {
                Logger.Instance.Error(e);
                return(View(new BillViewModel()));
            }
        }