public ProdutoEntity GetByCodigoBarras(string codigoBarra) { var result = AsQueryable.FirstOrDefault(x => x.CodigoBarra == codigoBarra); return(result); }
public bool CodigoBarraExiste(string codigoBarra) { var query = AsQueryable.FirstOrDefault(x => x.CodigoBarra == codigoBarra); return(query != null); }
public bool CodigoExsite(string codigo) { var first = AsQueryable.FirstOrDefault(x => x.Codigo == codigo); return(first != null); }
public TEntity FirstOrDefault(Expression <Func <TEntity, bool> > predicate = null) { return(AsQueryable.FirstOrDefault(predicate ?? (x => true))); }
public bool CodigoExiste(string codigo) { var entity = AsQueryable.FirstOrDefault(x => x.Codigo == codigo); return entity != null; }
public bool CpfExiste(string cpf) { var entity = AsQueryable.FirstOrDefault(x => x.Cpf == cpf); return entity != null; }