public async Task <bool> ExistsAsync(string number) { return(await Task.Run(() => _context.Set <NationalDoNotCall>().Any(x => x.PhoneNo == number))); }
public async Task AddAsync(T entity) { await _context.Set <T>().AddAsync(entity); }