public IActionResult allDojos()
        {
            DojoInfo dojoInfo = new DojoInfo();

            dojoInfo.dojos = DN_Factory.FindAllDojos();
            dojoInfo.dojo  = new Dojo();
            return(View("allDojos", dojoInfo));
        }
        public IActionResult dojo(long dojo_id)
        {
            var dojoInfo = new DojoInfo();

            dojoInfo.dojo        = DN_Factory.FindDojoById(dojo_id);
            dojoInfo.RogueNinjas = DN_Factory.FindAllRogueNinjas();

            return(View("dojoPage", dojoInfo));
        }
        public IActionResult createDojo(DojoInfo DInfo)
        {
            if (ModelState.IsValid)
            {
                DN_Factory.AddDojo(DInfo.dojo);
                return(RedirectToAction("allDojos"));
            }

            DojoInfo dojoInfo = new DojoInfo();

            dojoInfo.dojos = DN_Factory.FindAllDojos();
            dojoInfo.dojo  = new Dojo();

            return(View("allDojos", dojoInfo));
        }