// GET: Shippers/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var shipper = await _shipperService.GetId(id.Value); if (shipper == null) { return(NotFound()); } return(View(shipper)); }