public void Delete <TEntity>(TEntity item) where TEntity : class { try { _db.Set <TEntity>().Remove(item); } catch (Exception e) { throw; } }
public async Task <List <TEntity> > GetAllRecordsAsync <TEntity>() where TEntity : class { return(await _db.Set <TEntity>().ToListAsync()); }