mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
1. Added Logging with serilog 2. Added reporting with NVD3 3. Refactored to use server-side MVC views instead of HTML page
27 lines
547 B
C#
27 lines
547 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
|
|
namespace ProductCatalog.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
[HttpGet]
|
|
public IActionResult Index()
|
|
{
|
|
ViewData["page"] = "index";
|
|
return View();
|
|
}
|
|
|
|
public IActionResult Report1()
|
|
{
|
|
ViewData["page"] = "report1";
|
|
return View();
|
|
}
|
|
|
|
public IActionResult Report2()
|
|
{
|
|
ViewData["page"] = "report2";
|
|
return View();
|
|
}
|
|
}
|
|
} |