Ejemplo n.º 1
0
        public ActionResult RequirementDurationAnalisis(ComplexityModel complejidad)
        {
            TempData.Keep();
            List <RequirementDurationsModel> requirementDurationsInfo = new requerimientosController().GetRequirementDurationsInfo(complejidad.complexity);

            TempData["requirementsDurationInfo"] = requirementDurationsInfo;
            return(View());
        }
        /*
         * Efecto: retorna lista de modelos ComplexityModel necesario para reporte de
         * duraciones de requerimientos por complejidad
         * Requiere: NA
         * Modifica: NA
         */
        public List <ComplexityModel> GetComplexities()
        {
            List <string>          complexName  = GetStrComplexities();
            List <ComplexityModel> complexities = new List <ComplexityModel>();

            for (int i = 1; i < 5; ++i)
            {
                ComplexityModel model = new ComplexityModel();
                model.complexity    = i;
                model.strComplexity = complexName[i - 1];
                complexities.Add(model);
            }
            return(complexities);
        }