Esempio n. 1
0
        public IActionResult Show(int id)
        {
            var dojo = dojoFactory.FindByID(id);

            ViewBag.Id          = dojo.Id;
            ViewBag.Name        = dojo.Name;
            ViewBag.Location    = dojo.Location;
            ViewBag.Description = dojo.Description;
            ViewBag.Members     = dojoFactory.FindByID(id).ninjas;
            ViewBag.Rogues      = ninjaFactory.FindAllRogues();
            return(View());
        }