// GET: App/Sponsor/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var sponsor = await sponsors.GetByIdAsync(id.Value); if (sponsor == null) { return(NotFound()); } return(View(sponsor)); }
// GET: App/Sponsor/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var sponsor = await sponsors.GetByIdAsync(id.Value); if (sponsor == null) { return(NotFound()); } return(View(sponsor)); }