public List <ProductInfo> GetProductSortingWithDelete(int pc_id, int sorting) { List <ProductInfo> infos = new List <ProductInfo>(); IDataReader reader = db.GetProductSortingWithDelete(pc_id, sorting).CreateDataReader(); while (reader.Read()) { infos.Add(ProductInfo.Populate(reader)); } return(infos); }