Files
webzine/Webzine.WebApplication/Controllers/AccueilController.cs
mirage c42a4bb72c Merge branch 'J1/admin/commentaire' into J1/feat/AdminTitreIHM
# Conflicts:
#	Webzine.WebApplication/Webzine.WebApplication.csproj
2026-03-05 15:39:46 +01:00

84 lines
1.9 KiB
C#

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Webzine.WebApplication.Controllers
{
public class AccueilController : Controller
{
// GET: AccueilController
public ActionResult Index()
{
return View();
}
// GET: AccueilController/Details/5
public ActionResult Details(int id)
{
return View();
}
// GET: AccueilController/Create
public ActionResult Create()
{
return View();
}
// POST: AccueilController/Create
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Create(IFormCollection collection)
{
try
{
return RedirectToAction(nameof(Index));
}
catch
{
return View();
}
}
// GET: AccueilController/Edit/5
public ActionResult Edit(int id)
{
return View();
}
// POST: AccueilController/Edit/5
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Edit(int id, IFormCollection collection)
{
try
{
return RedirectToAction(nameof(Index));
}
catch
{
return View();
}
}
// GET: AccueilController/Delete/5
public ActionResult Delete(int id)
{
return View();
}
// POST: AccueilController/Delete/5
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Delete(int id, IFormCollection collection)
{
try
{
return RedirectToAction(nameof(Index));
}
catch
{
return View();
}
}
}
}