public IActionResult Index() { //ViewBag.Copyright = $"Copyright {DateTime.Now.Year} all right reserved."; ViewBag.Copyright = _service.GetCopyrightString() //ViewBag개체에 Copyright속성을 만들어 카피라이트 정보를 문자열로 담는 역할 + "," + _service2.GetCopyrightString(); return(View()); }
public IActionResult Index() { ViewBag.Copyright = _service.GetCopyrightString() + ", " + _service2.GetCopyrightString(); return(View()); }
public IActionResult Index() { //ViewBag.Copyright = // $"Copyright {DateTime.Now.Year} all right reserved."; //CopyrightService _svc = new CopyrightService(); //ViewBag.Copyright = _svc.GetCopyrightString(); //ViewBag.Copyright = _service.GetCopyrightString(); ViewBag.Copyright = _service.GetCopyrightString() + ", " + _service2.GetCopyrightString(); return(View()); }