// The methods that follow were originally built for NCUA/ACET. // It is hoped that they will eventually be refactored to fit a more // 'generic' approach to maturity models. public List <MaturityDomain> GetMaturityAnswers(int assessmentId) { using (var db = new CSET_Context()) { var data = db.GetMaturityDetailsCalculations(assessmentId).ToList(); return(CalculateComponentValues(data, assessmentId)); } }