A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
If I understand correctly, you are asking how to pass data from the IndexResignation action to the PendingManagersRequests() action without using Session. Use the RedirectToAction() method and add the parameters you wish to pass. You'll need update the PendingManagersRequests to include the two new parameters.
public async Task<ActionResult> PendingManagersRequests(string msg, string errorMsg, string userRole, string userCode)
{
// how to pass user role and user code to action PendingManager
}
The RedirectToAction() syntax.
return RedirectToAction("PendingManagersRequests", "Resignation",
new {
msg = "",
errorMsg = "",
userRole = userRole,
userCode = employeeFileNo
});