public IActionResult Index() { //Transient ViewBag.TransientService1 = transientService1.GetOperation(); ViewBag.TransientService2 = transientService2.GetOperation(); //Singleton ViewBag.SingletonService1 = singletonService1.GetOperation(); ViewBag.SingletonService2 = singletonService2.GetOperation(); //Scoped ViewBag.ScopedService1 = scopedService1.GetOperation(); ViewBag.ScopedService2 = scopedService2.GetOperation(); return(View()); }