더북(TheBook)

4. TechList 뷰 컴포넌트를 테스트해보자. ViewComponentDemo 컨트롤러에 다음과 같이 TechListDemo 액션 메서드를 추가한다.

▼  /Controllers/ViewComponentDemoController.cs에 액션 메서드 추가

/// <summary>
/// TechListViewComponent 사용 데모
/// </summary>
/// <returns></returns>
public IActionResult TechListDemo()
{
  return View();
}