If you want to just write "
if his role is 'admin' he will be rendered to "Welcome Admin User" or if normal user "Welcome!!!"." then you can use ViewBag and save the text as per the Session in Controller. Otherwise you can check for Session in the view itself also.
If you want to show different view then you can create different view as per the roles and then
public ActionResult AfterLogin()
{
if (Session["LogedUserID"] == null)
{ return View("Login"); }
if (Session["LoggedUserRole"].ToString() == "admin")
{ return View("AdminDashBoard"); }
else if (Session["LoggedUserRole"].ToString() == "employee")
{ return View("EmployeeDashBoard"); }
return View();
}
There are many ways, whichever you like, you can go through that one.