public IQueryable <TEntity> GetAll() { try { return(_context.Set <TEntity>()); } catch (Exception ex) { throw ex; } }
public virtual TEntity Create(TEntity entity) { _context.Set <TEntity>().Add(entity); return(entity); }