Пример #1
0
        // GET: Toggle
        public ActionResult Index()
        {
            var model = new ToggleVm {
                Good = true, Bad = false
            };

            return(View(model));
        }
Пример #2
0
 public ActionResult ajax(ToggleVm model)
 {
     return(View("Index", model));
 }