public ActionResult Index(HomeModel model)
        {
            var roles = new List<string>();
            foreach (var role in model.Roles)
            {
                if (role.Selected)
                {
                    roles.Add(role.Name);
                }
            }

            McoSession.Login(
                HttpContext,
                new McoCitizen(model.User, roles.ToArray()));

            return View(model);
        }
        public ActionResult Index()
        {
            McoCitizen citizen = McoSession.GetCitizen(HttpContext);
            if (citizen != null)
            {
                var homeModel = new HomeModel();
                homeModel.User = citizen.Name;
                foreach (var role in citizen.Roles)
                {
                    homeModel.SetSelected(role, true);
                }

                return View(homeModel);
            }
            else
            {
                return View(new HomeModel()
                {
                    User = "******",
                });
            }
        }