Exemple #1
0
        // GET: Account
        public ActionResult Index()
        {
            var daoResponse1 = AccountAdapter.GetAllUsers();
            var daoResponse2 = AccountAdapter.GetAllCategories();

            if (daoResponse1.Success)
            {
                var vm = new IndexViewModel();
                vm.Import(daoResponse1.Items, daoResponse2.Items);
                return(View(vm));
            }

            return(RedirectToAction("Index", "Home"));
        }