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