Esempio n. 1
0
 public ActionResult Delete(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     else
     {
         var vehicleId = model.Find(id);
         if (vehicleId == null)
         {
             return(HttpNotFound());
         }
         return(View(Mapper.Map <VehicleModelView>(vehicleId)));
     }
 }