public IActionResult GetSampleService([FromServices] ISampleService sampleservice) { var model = new LifetimeTestViewModel(); model.TransientDescription = _sampleTransientService.GetServiceInformation(); return(View("GetSampleService", model)); }
public IActionResult Index() { var model = new LifetimeTestViewModel(); model.TransientDescription = _sampleTransientService.GetServiceInformation(); model.SingletonDescription = _sampleSingletonService.GetServiceInformation(); model.ScopedDescription = _sampleScopedService.GetServiceInformation(); return(View("Index", model)); }