public List <DTOProdotto> GetBySearcher(DTOProdottoSearch searcher) { var predicate = BaseEntityPredicateBuilder.GetBasicPredicate <tabProdotti>(searcher); if (!string.IsNullOrEmpty(searcher.PartialDescription)) { predicate = predicate.And( x => x.Descrizione.Contains(searcher.PartialDescription) || x.DescrizioneBreve.Contains(searcher.PartialDescription)); } if (!string.IsNullOrEmpty(searcher.PartialCategoria)) { predicate = predicate.And(x => x.Categoria.Nome.Contains(searcher.PartialCategoria)); } if (!string.IsNullOrEmpty(searcher.PartialSKU)) { ; } //todo: SKU è associato ai prodotti di listino return(GetByContition(predicate)); }
public IHttpActionResult GetByDtoSerarch(DTOProdottoSearch search) { return(Ok(Service.GetBySearcher(search))); }
public List <DTOProdotto> GetBySearcher(DTOProdottoSearch searcher) { return(GetByContition(x => x.ShortDescription.Contains(searcher.PartialDescription))); }
public IHttpActionResult GetByDtoSerarch(DTOProdottoSearch search) { return(Ok(Service.GetBySearcher(search).Select(DTOListaProdotti.Map))); }