Esempio n. 1
0
 public async Task <Company> GetCompanyByCpf(string cpf) =>
 await _context.Companies.FirstOrDefaultAsync(CompanyQuery.FindByCpf(cpf));
Esempio n. 2
0
 public async Task <bool> ExistCpf(string cpf) =>
 await _context.Companies.AsNoTracking().AnyAsync(CompanyQuery.FindByCpf(cpf));