public async Task <IActionResult> ToggleFeatured(int?id) { if (id == null) { return(NotFound("Id cannot be null.")); } await _reportServices.ToggleFeatured(id.Value); return(RedirectToAction(nameof(Details), new { id })); }