public Repository(BillingDBContext context) { this._context = context; this._entities = _context.Set <TEntity>(); }
public async Task <TEntity> GetById(int id) { return(await _context.Set <TEntity>().FindAsync(id)); }