Beispiel #1
0
        public Sals PostNistDataSpecialFactor([FromBody] NistSpecialFactor updateValue)
        {
            int            assessmentId = Auth.AssessmentForUser();
            NistSalManager nistSal      = new NistSalManager();

            return(nistSal.SaveNistSpecialFactor(assessmentId, updateValue));
        }
Beispiel #2
0
        public Sals PostNistData([FromBody] NistSalModel updateValue)
        {
            int            assessmentId = Auth.AssessmentForUser();
            NistSalManager nistSal      = new NistSalManager();

            return(nistSal.UpdateSalValue(updateValue, assessmentId));
        }
Beispiel #3
0
        public Sals PostNistDataQuestions([FromBody] NistQuestionsAnswers updateValue)
        {
            int            assessmentId = Auth.AssessmentForUser();
            NistSalManager nistSal      = new NistSalManager();

            return(nistSal.SaveNistQuestions(assessmentId, updateValue));
        }
Beispiel #4
0
        public NistModel GetNistData()
        {
            int            assessmentId = Auth.AssessmentForUser();
            NistSalManager nistSal      = new NistSalManager();
            NistModel      rvalue       = new NistModel()
            {
                models         = nistSal.GetInformationTypes(assessmentId),
                questions      = nistSal.GetNistQuestions(assessmentId),
                specialFactors = nistSal.GetSpecialFactors(assessmentId)
            };

            return(rvalue);
        }