示例#1
0
        /// <summary>
        /// Список городов
        /// </summary>
        /// <returns></returns>
        public ActionResult CityList()
        {
            if (!checkRight())
            {
                return(Login());
            }
            initMenu(AdminMenuType.CitySettings);


            //addLog("UserIsAuthenticated " + G.UserIsAuthenticated);
            // var user = CityStar.Core.CurrentUser.GetInstance();
            //addLog(user.IsAuthenticated.ToString());

            var vm = new AdminCityListViewModel();

            vm.Items = FormRepository.GetCityList();
            return(View("AdminCityListPage", vm));
        }