예제 #1
0
        public ActionResult Display(int id)
        {
            Camion camion = AdminCamion.GetCamion(id);

            if (camion != null)
            {
                return(View("Display", camion));
            }
            return(HttpNotFound());
        }
예제 #2
0
 public ActionResult Update(Camion camion)
 {
     if (!ModelState.IsValid)
     {
         return(View("Update", camion));
     }
     else
     {
         AdminCamion.Update(camion);
         return(RedirectToAction("Index"));
     }
 }
예제 #3
0
 public ActionResult DeleteConfirmed(int id)
 {
     AdminCamion.Delete(id);
     return(RedirectToAction("Index"));
 }
예제 #4
0
        public ActionResult Update(int id)
        {
            Camion c = AdminCamion.GetCamion(id);

            return(View("Update", c));
        }
예제 #5
0
        public ActionResult _CamionList(int number = 0)
        {
            List <Camion> camiones = AdminCamion.GetCamiones();

            return(PartialView("_CamionList", camiones));
        }
예제 #6
0
        // GET: Chofer
        public ActionResult Index()
        {
            List <Camion> camiones = AdminCamion.GetCamiones();

            return(View(camiones));
        }