public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } else { var vehicleMakeWithId = vehicleMakeService.FindVehicleMakeWithId(id); if (vehicleMakeWithId == null) { return(HttpNotFound()); } return(View(AutoMapper.Mapper.Map <MakeViewModel>(vehicleMakeWithId))); } }