public IEnumerable <Tool> getAllTools() { var results = _toolRepository.GetAllTools(); /*var results = await _repositoryWrapper.Owner.GetAllOwnersAsync(); * * var ownerDtos = results.Select(o => new OwnerDto() * { * Id = o.Id, * Name = o.Name, * Address = o.Address, * Accounts = o.Accounts.Select(a => new AccountDto() * { * AccountType = a.AccountType, * DateCreated = a.DateCreated, * Id = a.Id * }) * }); * * return ownerDtos;*/ //return _mapper.Map<IEnumerable<OwnerDto>>(results); return(results); }