Ejemplo n.º 1
0
        public async Task <IActionResult> GetReviewCycles(string initiativeId)
        {
            var reviewCycles = await _initiativeService.GetReviewCycles(initiativeId);

            if (reviewCycles.Any())
            {
                return(Ok(reviewCycles));
            }

            if (!reviewCycles.Any())
            {
                return(NoContent());
            }
            return(BadRequest("Failed to get review cycle list"));
        }