Ejemplo n.º 1
0
        static void deleteAllMeasurements(string period_from, string period_to, ref GR gr, string mcc)
        {
            Console.WriteLine(mcc);
            var everything = gr.GetMeasurements("", period_from, period_to, "", "", false, "&filters[perm_link]=lmi_local%25&show_detail=true&filters[dimension]=" + mcc + "&per_page=100");

               //int i = 0;
            foreach (var row1 in everything)
            {
                Console.WriteLine("Deleting " + row1.PermLink);
                foreach (var row in row1.measurements.Where(c => c.CreatedBy == "46df52a6-e71e-11e3-a5a1-12768b82bfd5"))
                {
                    Console.Write(".");

                    gr.DeleteMeasuerment(row.ID);

                    //i++;
                }
            }
        }