Esempio n. 1
0
        public async Task <ActionResult <IEnumerable <SectionDto> > > GetUsersInRole(int roleId)
        {
            if (!this.HttpContext.Session.HasSystemActionRights() || !this.HttpContext.Session.HasSystemActionRight(ActionRights.SecurityManagement))
            {
                return(RedirectToAction("Index", "Home"));
            }

            var roleDtos = await UserGuiHelper.GetAllUserInRoleDtosForRoleAsync(roleId);

            return(Ok(roleDtos));
        }