Пример #1
0
        private static void BrandUpdateTest(ref BrandManager brandManager)
        {
            var entity = brandManager.GetAllByName("Skoda")?.Data.SingleOrDefault();

            entity.BrandName = "Volkswagen";
            brandManager.Update(entity);
        }
Пример #2
0
 private static void BrandtGetTest(ref BrandManager brandManager)
 {
     foreach (var brand in brandManager.GetAllByName("Volkswagen").Data)
     {
         Console.WriteLine(brand.BrandName);
     }
 }
Пример #3
0
        private static void BrandtDeleteTest(ref BrandManager brandManager)
        {
            var entity = brandManager.GetAllByName("Reno")?.Data.SingleOrDefault();

            brandManager.Delete(entity);
        }