Esempio n. 1
0
        public IActionResult Index(string lstAlertsSerialized = "")
        {
            //Alerts list
            List <Alert> lstAlerts = new List <Alert>();

            if (TempData[SessionKeys.Alerts] is string lstAlertTemp)
            {
                lstAlerts = JsonConvert.DeserializeObject <List <Alert> >(lstAlertTemp);
            }
            ViewBag.lstAlerts = lstAlerts;

            //Models
            ViewBag.modelfrmAddTransaction = new Transaction();
            ViewBag.modelfrmAddCategory    = new Category();

            //Catalogs
            string userId = _userManager.GetUserId(User);
            ICollection <Category> lstCategories = _homeBusiness.LstCategories(userId);

            ViewBag.lstCategories = lstCategories;
            ICollection <Icon> lstCatIcons = _homeBusiness.LstIcons();

            ViewBag.lstIcons = lstCatIcons;

            return(View());
        }