LabExercise.cs 1.44 KB
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AIAHTML5.API.Models
{
    public class LabExercise
    {

        public int userId { get; set; }
        public string labExerciseIdentifier { get; set; }
        public int lastQuestion { get; set; }
        public int totalQuestions { get; set; }
        public List<LabEcerciseDetails> labExercise;

     
        internal static int insertLabExerciseAttempt(int userId, string labExerciseIdentifier, int LastQuestion, int TotalQuestions, List<LabEcerciseDetails> labExercise)
          {
              ILog logger = log4net.LogManager.GetLogger((System.Reflection.MethodBase.GetCurrentMethod().DeclaringType));
              logger.Debug("inside insertLabExerciseAttempt for UserId =" + userId + ",labExerciseIdentifier= " + labExerciseIdentifier + ",LastQuestion= " + LastQuestion+ "TotalQuestions =" + TotalQuestions);
           

              int result = 0;

              DBModel objModel = new DBModel();

              result = objModel.InsertLoginDetails(userId);

              return result;
          }
         
    }

    public class LabEcerciseDetails
    {

        public int MaxScore { get; set; }
        public string UserAnswer { get; set; }
        public int QuestionNo { get; set; }
        public string CorrectAnswer { get; set; }
        public string DragItems { get; set; }
        public int Score { get; set; }
    }
}