예제 #1
0
 public async Task <Company> GetCompanyByCnpj(string cnpj) =>
 await _context.Companies.FirstOrDefaultAsync(CompanyQuery.FindByCnpj(cnpj));
예제 #2
0
 public async Task <bool> ExistCnpj(string cnpj) =>
 await _context.Companies.AsNoTracking().AnyAsync(CompanyQuery.FindByCnpj(cnpj));