public IActionResult Login(User1 user) { Console.WriteLine(user.Username); var foundUser = User1.GetUsers(user); Console.WriteLine(user.Username); return(View("Index", foundUser)); }
public IActionResult Index(int id, User1 userLogin) { var foundUser = User1.GetUsers(userLogin); // var user = foundUser.FirstOrDefault(entry => entry.User1Id == id); Console.WriteLine(foundUser.Token); return(View(foundUser)); }