Exemplo n.º 1
0
        public JsonResult GetUnitPerform(int?UnitID, int SubjectID)
        {
            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 Unitid    = Student.UnitID;
            var unitscore = new GetCalculatePerform(Student_ID, Courseid, Semid).temp;

            return(Json(new { scoreCard = unitscore }, 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));
        }