private static void BrandTest(BrandManager brandManager) { brandManager.Delete(new Brand { Id = 1025 }); brandManager.Add(new Brand { BrandName = "Nissan" }); brandManager.BringById(2); brandManager.Update(new Brand { Id = 7, BrandName = "Citroen" }); var result = brandManager.GetAll(); if (result.Success == true) { foreach (var brand in result.Data) { Console.WriteLine(brand.BrandName); } } }