Skip to content

Commit

Permalink
resolve unused variable in cmmc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Dec 5, 2024
1 parent 93c154e commit 3ddfd5b
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public class CmmcBusiness
private CSETContext _context;
private readonly IAssessmentUtil _assessmentUtil;
private readonly IAdminTabBusiness _adminTabBusiness;

private int _maturityModelId;

private static object myLock = new object();

private TranslationOverlay _overlay;

private AdditionalSupplemental _addlSuppl;
Expand Down Expand Up @@ -93,12 +88,12 @@ public int GetScoreForLevel(int assessmentId, int level)
var levelId = _context.MATURITY_LEVELS
.Where(x => x.Level == level && x.Maturity_Model_Id == modelIdCmmc2)
.Select(x => x.Maturity_Level_Id)
.FirstOrDefault();
.FirstOrDefault();

var query = from a in _context.ANSWER
join q in _context.MATURITY_QUESTIONS on a.Question_Or_Requirement_Id equals q.Mat_Question_Id
where q.Maturity_Level_Id == levelId && a.Assessment_Id == assessmentId
select a;
join q in _context.MATURITY_QUESTIONS on a.Question_Or_Requirement_Id equals q.Mat_Question_Id
where q.Maturity_Level_Id == levelId && a.Assessment_Id == assessmentId
select a;

var answerList = query.ToList().Select(x => x.Answer_Text).ToList();

Expand Down

0 comments on commit 3ddfd5b

Please sign in to comment.