示例#1
0
        public String ReadFood(String nombre_comida_bouquet)
        {
            BDBouquets dbQuery = new BDBouquets();
            DataSet    ds      = dbQuery.ConsultarComida();
            DataTable  dt      = ds.Tables[0].Clone();

            ds.Tables[0].Select(String.Format("nombre_comida_bouquet LIKE '%{0}%'", nombre_comida_bouquet)).Take(100).CopyToDataTable(dt, LoadOption.Upsert);
            var query = new BLL_Bouquets().BuildFood(dt);

            dbQuery.Cerrar();
            return(new JavaScriptSerializer().Serialize(query));
        }