예제 #1
0
        private static void ProductTest()
        {
            ProductManager productManager = new ProductManager(new EfProductDal(), new CategoryManager(new EfCategoryDal()));
            var            result         = productManager.GetProductDetailsDto();

            if (result.Success == true)
            {
                foreach (var product in result.Data)
                {
                    Console.WriteLine("Ürün adı: " + product.ProductName + " " + "Kategorisi:" + product.CategoryName);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }