public async Task <T> FindById(Guid id) { return(await _context.Set <T>().FirstOrDefaultAsync(x => x.Id == id)); }
public GenericRepository(SalesContext context) { _context = context; _dataset = context.Set <T>(); }