// GET: Staff/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var staff = await staffBusiness.getStaffById(id.Value); if (staff == null) { return(NotFound()); } return(View(staff)); }