public async Task<ActionResult> Index(tempUser userDetails)
{
temp.Name = userDetails.Name;
temp.Pass= userDetails.Pass;
db.tempUsers.Add(temp);
db.SaveChanges();
if (true)
{
await SendNotification();
return RedirectToAction("NotificationUser", "SignUp", new { tempUser = userDetails});
}
else
{
return RedirectToAction("AAA");
}
}
I have a controller like above. How can I pass all result of temp (temp.Name, temp.Pass ...) into SignUp() method in the same controller NotificationUser.