public Goods GetGoods(int id) { Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString); return(sto.GetGoodsById(id)); }
public int SearchCount(string query) { Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString); return(sto.SearchGoodsCount(query)); }
public IEnumerable <Goods> Search(string keyword, int start = 0, int limit = 50, string order = null, bool desc = false) { Crawler.Crawler.AddKeyword(keyword); Storage.Storage sto = new Storage.Storage(System.Configuration.ConfigurationManager.ConnectionStrings["eworm"].ConnectionString); return(sto.SearchGoods(keyword, start, limit, order, desc)); }