Beispiel #1
0
        private static void ColorTest(ColorManager colorManager)
        {
            colorManager.Delete(new Color {
                Id = 1013
            });
            colorManager.Add(new Color {
                Name = "Turkuaz"
            });
            colorManager.BringById(3);
            colorManager.Update(new Color {
                Id = 6, Name = "Mat Siyah"
            });
            var result = colorManager.GetAll();

            if (result.Success == true)
            {
                foreach (var color in result.Data)
                {
                    Console.WriteLine(color.Name);
                }
            }
        }