コード例 #1
0
 public IActionResult login(User user)
 {
     if (m.asadmin(user))
     {
         return(View("~/Admin/Index"));
     }
     else if (m.asuser(user))
     {
         return(View("~/Users/Index"));
     }
     return(View());
 }