// GET: Departments/Details/5 public async Task <IActionResult> Details(long?id) { var result = await _departmentsService.GetAsync(id); if (result == null) { return(NotFound()); } return(View(result)); }