// GET: Admin/Makes/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var make = await _serviceWrapper.GetOneAsync <Make>(id.Value); if (make == null) { return(NotFound()); } return(View(make)); }
public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var car = await _serviceWrapper.GetOneAsync <Car>(id.Value); if (car == null) { return(NotFound()); } return(View(car)); }