Add vehicle recall
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using MileageTraker.Web.Attributes;
|
||||
using MileageTraker.Web.DAL;
|
||||
@@ -32,7 +33,16 @@ namespace MileageTraker.Web.Controllers
|
||||
public PartialViewResult DetailsPartial(string id)
|
||||
{
|
||||
var vehicle = DataService.GetVehicle(id);
|
||||
return PartialView(new VehiclePartialDetails(vehicle));
|
||||
if (vehicle == null)
|
||||
Response.StatusCode = 404;
|
||||
return PartialView(new VehiclePartialDetails(vehicle));
|
||||
}
|
||||
public PartialViewResult DetailsQuickPartial(string id)
|
||||
{
|
||||
var vehicle = DataService.GetVehicle(id);
|
||||
if (vehicle == null)
|
||||
Response.StatusCode = 404;
|
||||
return PartialView(new VehiclePartialDetailsQuick(vehicle));
|
||||
}
|
||||
|
||||
public ActionResult Create()
|
||||
|
||||
Reference in New Issue
Block a user