public IActionResult Index() { var vm = new DIViewModel { CalculatorResult = _Calculator.Add(5, 5), TransientsEqual = _TransientsEqual, ScopedEqual = _ScopedEqual }; return(View(vm)); }
public IActionResult Index() { DIViewModel diViewModel = new DIViewModel(); diViewModel.GuidTransient.GuidController = _guidTransientApplicationService.GetGuid(); diViewModel.GuidTransient.GuidApplicationService = _coreApplicationService.GetGuidTransient(); diViewModel.GuidScoped.GuidController = _guidScopedApplicationService.GetGuid(); diViewModel.GuidScoped.GuidApplicationService = _coreApplicationService.GetGuidScoped(); diViewModel.GuidSingleton.GuidController = _guidSingletonApplicationService.GetGuid(); diViewModel.GuidSingleton.GuidApplicationService = _coreApplicationService.GetGuidSingleton(); return(View(diViewModel)); }