private static void ProductText() { ProductManager productManager = new ProductManager(new EfproductDal() , new CategoryManager(new EfCategoryDal())); var result = productManager.GetProductDetaiIs(); if (result.Success == true) { foreach (var product in result.Data) { Console.WriteLine(product.ProductName + "/" + product.CategoryName); } } else { Console.WriteLine(result.Message); } }