You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
leap-hit-server/code/server/ApiLeapHit/Controllers/PlayerController.cs

84 lines
1.8 KiB

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