// GET: Groups/Details/5 public async Task<IActionResult> Details(int? id) { if (id == null) { return NotFound(); } var @group = await _groupDAO.FindOrDefault(id); if (@group == null) { return NotFound(); } return View(@group); }