|
|
@@ -0,0 +1,87 @@
|
|
|
+using Microsoft.AspNetCore.Http;
|
|
|
+using Microsoft.AspNetCore.Mvc;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace Warhammer.Controllers
|
|
|
+{
|
|
|
+ public class PlayerController : Controller
|
|
|
+ {
|
|
|
+ // GET: Player
|
|
|
+ public ActionResult Index()
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET: Player/Details/5
|
|
|
+ public ActionResult Details(int id)
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET: Player/Create
|
|
|
+ public ActionResult Create()
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+
|
|
|
+ // POST: Player/Create
|
|
|
+ [HttpPost]
|
|
|
+ [ValidateAntiForgeryToken]
|
|
|
+ public ActionResult Create(IFormCollection collection)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ return RedirectToAction(nameof(Index));
|
|
|
+ }
|
|
|
+ catch
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET: Player/Edit/5
|
|
|
+ public ActionResult Edit(int id)
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+
|
|
|
+ // POST: Player/Edit/5
|
|
|
+ [HttpPost]
|
|
|
+ [ValidateAntiForgeryToken]
|
|
|
+ public ActionResult Edit(int id, IFormCollection collection)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ return RedirectToAction(nameof(Index));
|
|
|
+ }
|
|
|
+ catch
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET: Player/Delete/5
|
|
|
+ public ActionResult Delete(int id)
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+
|
|
|
+ // POST: Player/Delete/5
|
|
|
+ [HttpPost]
|
|
|
+ [ValidateAntiForgeryToken]
|
|
|
+ public ActionResult Delete(int id, IFormCollection collection)
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ return RedirectToAction(nameof(Index));
|
|
|
+ }
|
|
|
+ catch
|
|
|
+ {
|
|
|
+ return View();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|