Exemplo n.º 1
0
        //
        // 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());
        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     if (User.IsInRole("SuperUser"))
     {
         ViewData["mentors"] = new SelectList(_mentorApplicationService.GetAllMentors(), "Id", "MentorName", CurrentMentor.Id);
     }
     return(View());
 }