public IActionResult Details(int id) { var e = _eventRepo.FindOne(id); if (e == null) { return(StatusCode(410)); } var users = _attendeeRepo.FindAllUsersByEvent(e); return(new ObjectResult(new { e, users })); }