// // GET: /User/Create public ActionResult CreateUser() { var mentors = _mentorApplicationService.GetAllMentors(); ViewData["Mentor"] = new SelectList(mentors, "Id", "MentorName"); var roles = _roleProviderApplicationService.GetAllRoles(); ViewData["Role"] = roles; return(View()); }
public ActionResult Index() { if (User.IsInRole("SuperUser")) { ViewData["mentors"] = new SelectList(_mentorApplicationService.GetAllMentors(), "Id", "MentorName", CurrentMentor.Id); } return(View()); }