Пример #1
0
        private static void GetAllServiceForBrand()
        {
            BrandManager brandManager = new BrandManager(new EfBrandDal());

            Console.WriteLine("\n------------------- GetAllService() Test-------------------\n");
            var result = brandManager.GetAllService();

            if (result.Success == true)
            {
                Console.WriteLine(result.Message);
                foreach (var brand in result.Data)
                {
                    Console.WriteLine(brand.BrandId + " - " + brand.BrandName);
                    Console.WriteLine("\n");
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }