Пример #1
0
        private static void ProductTest()
        {
            ProductManager productManager = new ProductManager(new EfProductDal(), new CategoryManager(new EFCategoryDal()));
            var            Result         = productManager.productDetailDtos();

            if (Result.Success == true)
            {
                foreach (var product in Result.Data)
                {
                    Console.WriteLine(product.ProductName + " /" + product.CategoryName);
                }
            }
            else
            {
                Console.WriteLine(Result.Message);
            }
        }