67 lines
1.5 KiB
C#
67 lines
1.5 KiB
C#
using Contracts.BusinessLogicsContracts;
|
|
using Contracts.ViewModels;
|
|
using GuarantorAPP.Models;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Diagnostics;
|
|
|
|
namespace GuarantorAPP.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
private readonly ILogger<HomeController> _logger;
|
|
private readonly IGuarantorLogic _userLogic;
|
|
private readonly IMachineLogic _machineLogic;
|
|
private readonly IWorkerLogic _workerLogic;
|
|
private readonly IWorkshopLogic _workshopLogic;
|
|
|
|
public HomeController(ILogger<HomeController> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
public IActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
public IActionResult Enter()
|
|
{
|
|
return View();
|
|
}
|
|
public IActionResult Register()
|
|
{
|
|
return View();
|
|
}
|
|
public IActionResult IndexMachine()
|
|
{
|
|
return View(new List<MachineViewModel>());
|
|
}
|
|
public IActionResult CreateMachine()
|
|
{
|
|
return View();
|
|
}
|
|
public IActionResult IndexWorker()
|
|
{
|
|
return View(new List<WorkerViewModel>());
|
|
}
|
|
public IActionResult CreateWorker()
|
|
{
|
|
return View();
|
|
}
|
|
public IActionResult IndexWorkshop()
|
|
{
|
|
return View(new List<WorkshopViewModel>());
|
|
}
|
|
public IActionResult CreateWorkshop()
|
|
{
|
|
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 });
|
|
}
|
|
}
|
|
} |