public List <BuybackResult> Search(BuybackResultQuery queryObject) { WherePredicate = buybackQueryProcessorFactory.Create(queryObject).ProcessAll(); var query = FormQuery(); using (var connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString)) { return(connection.Query <BuybackResult>(query).ToList()); } }
public IEnumerable <BuybackResult> SearchPaged(BuybackResultQuery queryObject, int pageSize, int pageNumber) { throw new NotImplementedException(); }
public static BuybackQueryProcessor Instance(BuybackResultQuery buybackResultQuery) { return(new BuybackQueryProcessor(buybackResultQuery)); }
private BuybackQueryProcessor(BuybackResultQuery buybackResultQuery) { this.buybackResultQuery = buybackResultQuery; }
public IBuybackQueryProcessor Create(BuybackResultQuery buybackQuery) { return(BuybackQueryProcessor.Instance(buybackQuery)); }
public IEnumerable <BuybackResult> Post(int pageSize, int pageNumber, [FromBody] BuybackResultQuery queryObject) { return(repositoryService.ResultRepository.SearchPaged(queryObject, pageSize, pageNumber)); }
public IEnumerable <BuybackResult> Post([FromBody] BuybackResultQuery queryObject) { return(repositoryService.ResultRepository.Search(queryObject)); }