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

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

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

            return(nistSal.SaveNistQuestions(assessmentId, updateValue));
        }
Пример #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);
        }