// GET: Addresses/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var obj = await _ProviderService.FindByIdAsync(id.Value); if (obj == null) { return(NotFound()); } return(View(obj)); }