Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Old2Controller : Controller
- {
- private readonly ProductService _productService;
- public Old2Controller()
- {
- var repository = new SqlProductRepository();
- _productService = new ProductService(repository);
- }
- // GET: Old2
- public ActionResult Index()
- {
- var allProducts = _productService.GetAllProductsByStatus();
- return View();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement