コード例 #1
0
 public IActionResult Index(string name)
 {
     if (foxservice.IsLogged(name))
     {
         Fox fox = foxservice.FindFoxByName(name);
         return(View(fox));
     }
     else
     {
         return(RedirectToAction("login"));
     }
 }
コード例 #2
0
 public IActionResult Index(string name)
 {
     return(View(foxService.FindFoxByName(name)));
 }