public IEnumerable <IUserDto> GetUsers() { var panelUser = _panelRepository.FindAll().ToList(); return(panelUser.Select(item => new UserDto { FirstName = item.FirstName, LastName = item.LastName, Username = item.UserName, UserId = Guid.Parse(item.Id), Roles = _panelRepository.GetUserRoles(item).Result, MobileNumber = item.PhoneNumber, Email = item.Email, NationalCode = item.NationalCode }).ToList()); }