Hi ! I am having a trouble with this code:
public async Task<IEnumerable<Customer>> GetAllAsync()
{
var customers = await dbSet.ToListAsync();
return customers;
}
Awaiting this correctly returns all customers.
However, this code does not work :
public async Task<IEnumerable<Customer>> GetAllAsync()
{
var c = await _unitOfWork.CustomerRepository.GetAllAsync();
return c;
}
and c is an EMPTY list - Data.Entities.Customer[0] !!!!
What am I doing wrong ??
Thank you in advance !