PIbd-21_Anisin_R.S._CourseW.../TravelAgency/TravelAgencyWebApp/Controllers/HomeController.cs

110 lines
2.4 KiB
C#
Raw Normal View History

2024-04-30 18:42:41 +04:00
using TravelAgencyContracts.BindingModels;
using TravelAgencyContracts.ViewModels;
using TravelAgencyWebApp.Models;
using Microsoft.AspNetCore.Mvc;
using System.Diagnostics;
namespace TravelAgencyWebApp.Controllers
{
public class HomeController : Controller
{
private readonly ILogger<HomeController> _logger;
public HomeController(ILogger<HomeController> logger)
{
_logger = logger;
}
public IActionResult Index()
{
return View();
}
[HttpGet]
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 });
}
[HttpGet]
public IActionResult Enter()
{
return View();
}
[HttpGet]
public IActionResult Register()
{
return View();
}
[HttpGet]
public IActionResult Excursions()
{
return View(new List<ExcursionViewModel>());
}
[HttpGet]
public IActionResult ExcursionGroups()
{
return View(new List<ExcursionGroupViewModel>());
}
[HttpGet]
public IActionResult Tours()
{
return View(new List<TourViewModel>());
}
[HttpGet]
public IActionResult CreateTour()
{
return View();
}
[HttpGet]
public IActionResult CreateExcursion()
{
2024-05-01 01:26:52 +04:00
return View(new List<TourViewModel>());
2024-04-30 18:42:41 +04:00
}
[HttpGet]
public IActionResult CreateExcursionGroup()
{
2024-05-01 01:26:52 +04:00
return View(new List<TourViewModel>());
2024-04-30 18:42:41 +04:00
}
[HttpGet]
public IActionResult UpdateTour()
{
return View();
}
[HttpGet]
public IActionResult UpdateExcursion()
{
2024-05-01 01:26:52 +04:00
return View(new List<TourViewModel>());
2024-04-30 18:42:41 +04:00
}
[HttpGet]
public IActionResult UpdateExcursionGroup()
{
2024-05-01 01:26:52 +04:00
return View(new List<TourViewModel>());
2024-04-30 18:42:41 +04:00
}
[HttpGet]
public IActionResult ReportMenu()
{
return View();
}
[HttpGet]
public IActionResult ReportPlaceTour()
{
2024-05-01 01:26:52 +04:00
return View(new List<ReportPlaceTourViewModel>());
2024-04-30 18:42:41 +04:00
}
[HttpGet]
public IActionResult ReportTourPeriod()
{
2024-05-01 01:26:52 +04:00
return View(new List<ReportTourPeriodViewModel>());
2024-04-30 18:42:41 +04:00
}
}
}