Esempio n. 1
0
        public ActionResult Index()
        {
            var model = new ModelContentVoteItem
            {
                UserItems = _userapi.GetListSimple(UserItem.AgencyID),
                VoteItems = _voteapi.GetListSimple(UserItem.AgencyID)
            };

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult ListItems()
        {
            var year  = Request["year"];
            var y     = string.IsNullOrEmpty(year) ? DateTime.Now.Year : int.Parse(year);
            var model = new ModelGeneralVoteItem
            {
                ListItems    = _api.GeneralListTotal(y, UserItem.AgencyID),
                LstMonthItem = ConvertDateItem.ListMonthinYear(y),
                ListUser     = _userApi.GetListSimple(UserItem.AgencyID)
            };

            return(View(model));
        }