Example #1
0
        static void Main(string[] args)
        {
            //ProductTest();
            //CategoryTest();
            ProductManager productManager = new ProductManager(new EFProductDal());

            var result = productManager.GetAllProductDetail();

            if (result.Success)
            {
                Console.WriteLine(result.Message);
                Console.WriteLine();
                foreach (var productDetails in productManager.GetAllProductDetail().Data)
                {
                    Console.WriteLine($"{productDetails.ProductId} - {productDetails.ProductName} - {productDetails.UnitsInStock} - {productDetails.CategoryName}");
                }
            }
        }