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