|
|
@@ -1,10 +1,4 @@
|
|
|
-using System;
|
|
|
-using System.Collections.Generic;
|
|
|
-using System.Data;
|
|
|
-using System.Data.Entity;
|
|
|
-using System.Linq;
|
|
|
-using System.Net;
|
|
|
-using System.Web;
|
|
|
+using System.Net;
|
|
|
using System.Web.Mvc;
|
|
|
using CD67.FicheCollege.Entity;
|
|
|
using CD67.FicheCollege.Factory;
|
|
|
@@ -47,7 +41,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
}
|
|
|
|
|
|
// GET: Territoire/Edit/5
|
|
|
- public ActionResult Edit(string id)
|
|
|
+ public ActionResult Edit(int? id)
|
|
|
{
|
|
|
if (id == null)
|
|
|
{
|
|
|
@@ -79,7 +73,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
}
|
|
|
|
|
|
// GET: Territoire/Delete/5
|
|
|
- public ActionResult Delete(string id)
|
|
|
+ public ActionResult Delete(int? id)
|
|
|
{
|
|
|
if (id == null)
|
|
|
{
|
|
|
@@ -97,7 +91,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
// POST: Territoire/Delete/5
|
|
|
[HttpPost, ActionName("Delete")]
|
|
|
[ValidateAntiForgeryToken]
|
|
|
- public ActionResult DeleteConfirmed(string id)
|
|
|
+ public ActionResult DeleteConfirmed(int id)
|
|
|
{
|
|
|
TerritoireFactory territoireFactory = new TerritoireFactory(db);
|
|
|
Entity.Territoire territoire = territoireFactory.getById(id);
|
|
|
@@ -105,7 +99,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
return RedirectToAction("Index");
|
|
|
}
|
|
|
|
|
|
- public ActionResult Up(string id)
|
|
|
+ public ActionResult Up(int? id)
|
|
|
{
|
|
|
if (id == null)
|
|
|
{
|
|
|
@@ -117,7 +111,7 @@ namespace CD67.FicheCollege.MVC.Controllers
|
|
|
return RedirectToAction("Index");
|
|
|
}
|
|
|
|
|
|
- public ActionResult Down(string id)
|
|
|
+ public ActionResult Down(int? id)
|
|
|
{
|
|
|
if (id == null)
|
|
|
{
|