Example #1
0
        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());
        }
Example #2
0
 public Task <Compte> GetCompteByIdAsync(int id)
 {
     return(_compteRepository.GetByIdAsync(id));
 }