public static MaturityModelsResult Create(float campLevel, MaturityModelDomain mm, int option) { var result = new MaturityModelsResult { MaturityModelId = mm.MaturityModelId, Name = mm.Name, MaxLevel = mm.MaxLevel(), CurrenteLevel = mm.LevelOf(option), MinimalLevel = campLevel }; return(result); }
public void Validade(MaturityModelDomain mm, MaturityModelProjectDomain project) { var maturity = MaturityModelsResult.Create(Camp.LevelOfMaturity(mm.MaturityModelId), mm, project.ValueOf(mm.MaturityModelId)); MaturityModel.Add(maturity); }