Beispiel #1
0
        public ActionResult Display(int id)
        {
            Chofer chofer = AdminChofer.GetChofer(id);

            if (chofer != null)
            {
                return(View("Display", chofer));
            }
            return(HttpNotFound());
        }
Beispiel #2
0
 public ActionResult Create(Auto auto)
 {
     auto.Chofer = AdminChofer.GetChofer(auto.Chofer.ChoferID);
     if (!ModelState.IsValid)
     {
         return(View("Create", auto));
     }
     else
     {
         AdminAuto.Create(auto);
         return(RedirectToAction("Index"));
     }
 }
Beispiel #3
0
        public ActionResult Update(int id)
        {
            Chofer c = AdminChofer.GetChofer(id);

            return(View("Update", c));
        }