Spaces:
Sleeping
Sleeping
Download Controllers/HomeController.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 718 Bytes
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Controllers/HomeController.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/Controllers/HomeController.cs
-
curl -L -o HomeController.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Controllers/HomeController.cs
718 Bytes
| using System.Diagnostics; | |
| using Microsoft.AspNetCore.Mvc; | |
| using OilShopManagement.Models; | |
| namespace OilShopManagement.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(); | |
| } | |
| [] | |
| public IActionResult Error() | |
| { | |
| return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); | |
| } | |
| } | |