Coursach/Course/ImplementerApp/Controllers/HomeController.cs
2024-04-29 22:21:21 +04:00

72 lines
1.7 KiB
C#

using ImplementerApp.Models;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
using BusinessLogic.BusinessLogic;
using Contracts.BusinessLogicsContracts;
using Contracts.ViewModels;
namespace ImplementerApp.Controllers
{
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
private readonly IDetailLogic _detailLogic;
private readonly IImplementerLogic _userLogic;
private readonly IProductLogic _productLogic;
private readonly IProductionLogic _productionLogic;
public HomeController(ILogger<HomeController> logger)
{
_logger = logger;
}
public IActionResult Index()
{
return View();
}
public IActionResult Enter()
{
return View();
}
public IActionResult Register()
{
return View();
}
public IActionResult IndexDetail()
{
return View(new List<DetailViewModel>());
}
public IActionResult CreateDetail()
{
return View();
}
public IActionResult IndexProduct()
{
return View(new List<ProductViewModel>());
}
public IActionResult CreateProduct()
{
return View();
}
public IActionResult IndexProduction()
{
return View(new List<ProductionViewModel>());
}
public IActionResult CreateProduction()
{
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 });
}
}
}