public async Task <IActionResult> GetInitiatives(string yearId) { var initiatives = await _initiativeService.GetInitiatives(yearId); if (initiatives.Any()) { return(Ok(initiatives)); } if (!initiatives.Any()) { return(NoContent()); } return(BadRequest("Failed to get initiative list")); }