示例#1
0
        private IEnumerable <SelectListItem> GetUsers()
        {
            var users = _userQueryService.GetAllActiveUsers().ToArray();

            return(users.Select(x => new SelectListItem {
                Value = x.UserId.ToString(), Text = x.Email
            }));
        }