public ActionResult Add() { if (Session["mes_er"] != null) { ViewBag.message_er = Session["mes_er"]; Session.Remove("mes_er"); } ViewBag.Active = "manager"; ViewBag.ListRole = roleModels.GetAllItems(); return(View()); }
// GET: ProfileManager public ActionResult Index() { // Show message if (Session["mes"] != null) { ViewBag.message = Session["mes"]; Session.Remove("mes"); } if (Session["mes_er"] != null) { ViewBag.message_er = Session["mes_er"]; Session.Remove("mes_er"); } ViewBag.Active = "manager"; CustomPrincipal prin = (CustomPrincipal)User; USER UserProfile = userModels.GetItem(prin.ID); ViewBag.ListRole = roleModels.GetAllItems(); return(View(UserProfile)); }