public async Task <List <UserDto> > GetAll() { var users = await _service.GetAllAsync(); var userDtos = new List <UserDto>(); foreach (var item in users) { userDtos.Add(new UserDto { Email = AES256.DecodeAndDecrypt(item.Email), Password = AES256.DecodeAndDecrypt(item.Password), CompanyId = item.CompanyId, FirstName = item.FirstName, LastName = item.LastName, Status = item.Status, }); } return(userDtos); }