public Task <Client> GetByCompteIdAsync(int id) { Compte compte = compteRepository.GetByIdAsync(id).Result; return(_SolutionCleanCabloPlusContext.Clients .Include(c => c.comptes) .Where(c => c.comptes.Contains(compte)) .FirstOrDefaultAsync()); }
public Task <Compte> GetCompteByIdAsync(int id) { return(_compteRepository.GetByIdAsync(id)); }