Exemplo n.º 1
0
        public async Task <ActionResult> SetRole(long apartId)
        {
            var model = new SetRoleModel()
            {
                UserId             = apartId,
                SelectedRoleIdList = await UserRole2ApartRepository.GetRoleIdListAsync(apartId),
                UserRoleList       = await UserRoleRepository.GetListAsync()
            };

            return(PartialView(model));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> SetRole()
        {
            var result = await UserRoleRepository.GetListAsync();

            return(PartialView(result));
        }