public void Add <TEntity>(TEntity item) where TEntity : class { try { _db.Add(item); } catch { throw; } }
public void Add <TEntity>(TEntity entity) where TEntity : class { try { _dbContext.Add(entity); } catch (Exception) { throw; } }