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