fix(00_ProjectStructure): modified the details and formattings

This commit is contained in:
2025-03-13 17:50:27 +03:30
parent 20d08cab8d
commit f9163fb61c
1316 changed files with 26 additions and 27 deletions
@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
namespace C02_RoutingBasics.Controllers
{
public class GalleryController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Main()
{
return View();
}
}
}
@@ -0,0 +1,33 @@
using C02_RoutingBasics.Models;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
namespace C02_RoutingBasics.Controllers
{
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
public HomeController(ILogger<HomeController> logger)
{
_logger = logger;
}
public IActionResult Index()
{
return View();
}
public IActionResult Privacy()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}