TestingResult.cs 821 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace NEducation.Models
  6. {
  7. public class TestingResult
  8. {
  9. //ViewBag.courseName = Session["courseName"] as String;
  10. // ViewBag.lessonName = Session["lessonName"] as String;
  11. // ViewBag.time = time;
  12. // ViewBag.correct = countCorrect;
  13. // ViewBag.wrong = countWrong;
  14. // ViewBag.percent = Math.Round((decimal) countCorrect * 100 / result.total);
  15. public string courseName { get; set; }
  16. public string lessonName { get; set; }
  17. public int timeElapsed { get; set; }
  18. public int countCorrect { get; set; }
  19. public int countWrong { get; set; }
  20. public int countTotal { get; set; }
  21. public int percent { get; set; }
  22. }
  23. }