Exemplo n.º 1
0
        public JsonResult GetScore()
        {
            GetMarks obj = new GetMarks();

            int?userid = new GetUserByUserName(User.Identity.Name).Student_ID;
            var test   = obj.GetMarksSubjectWise(userid);

            return(Json(new { marksdata = test }, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        //Subject Performance

        public JsonResult SubjectPerformance()
        {
            ireadytodayEntities2 dbcontext = new ireadytodayEntities2();
            var Student    = new GetUserByUserName(User.Identity.Name);
            var CourseID   = Student.CourseID;
            var SemID      = Student.SemID;
            var Student_ID = Student.Student_ID;
            // var Uid = Student.UnitID;
            var subjectid = Student.SubjectID;
            var score     = new GetCalculatePerform(Student_ID, CourseID, SemID).tempobj;

            GetMarks obj = new GetMarks();

            int?userid = new GetUserByUserName(User.Identity.Name).Student_ID;
            var test   = obj.GetMarksSubjectWise(userid);



            return(Json(new { scoreCard = score, marks = test }, JsonRequestBehavior.AllowGet));
        }