Exemplo n.º 1
0
        public async Task <IActionResult> GetEvaluationCriterions(string reviewCycleId)
        {
            var evaluationCriterions = await _initiativeService.GetEvaluationCriterions(reviewCycleId);

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

            if (!evaluationCriterions.Any())
            {
                return(NoContent());
            }
            return(BadRequest("Failed to get evaluation criterions list"));
        }