|
|
@@ -1,29 +1,33 @@
|
|
|
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: PlayerController
|
|
|
+ // GET: Player
|
|
|
public ActionResult Index()
|
|
|
{
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- // GET: PlayerController/Details/5
|
|
|
+ // GET: Player/Details/5
|
|
|
public ActionResult Details(int id)
|
|
|
{
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- // GET: PlayerController/Create
|
|
|
+ // GET: Player/Create
|
|
|
public ActionResult Create()
|
|
|
{
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- // POST: PlayerController/Create
|
|
|
+ // POST: Player/Create
|
|
|
[HttpPost]
|
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Create(IFormCollection collection)
|
|
|
@@ -38,13 +42,13 @@ namespace Warhammer.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // GET: PlayerController/Edit/5
|
|
|
+ // GET: Player/Edit/5
|
|
|
public ActionResult Edit(int id)
|
|
|
{
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- // POST: PlayerController/Edit/5
|
|
|
+ // POST: Player/Edit/5
|
|
|
[HttpPost]
|
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Edit(int id, IFormCollection collection)
|
|
|
@@ -59,13 +63,13 @@ namespace Warhammer.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // GET: PlayerController/Delete/5
|
|
|
+ // GET: Player/Delete/5
|
|
|
public ActionResult Delete(int id)
|
|
|
{
|
|
|
return View();
|
|
|
}
|
|
|
|
|
|
- // POST: PlayerController/Delete/5
|
|
|
+ // POST: Player/Delete/5
|
|
|
[HttpPost]
|
|
|
[ValidateAntiForgeryToken]
|
|
|
public ActionResult Delete(int id, IFormCollection collection)
|