fork download
  1. public ActionResult Details(Guid Id)
  2. {
  3. Contest model = _context.Contests.
  4. Include(x => x.Judges).
  5. Include(y => y.Problems).
  6. Include(z => z.Participants).
  7. Include(x => x.Standings).
  8. Where(i => i.Id == Id).FirstOrDefault();
  9. List<Submission> submissions = _context.Submissions.Include(c => c.Participant).Where(c => c.Contest.Id == Id && !c.Participant.Equals(null)).ToList();
  10. model.Submissions = submissions;
  11. //DbSet<Standing> collection = _context.GetObjectQuery(Standings);
  12. //IEnumerable<>
  13.  
  14. IQueryable<Standing> collection = _context.Standings.AsQueryable();
  15. ViewBag.NotifierEntity = DbContextExtensions.GetNotifierEntity<Standing>(_context, collection).ToJson();
  16. return View(model);
  17. }
  18.  
  19. public ActionResult StandingPartial(Guid Id)
  20. {
  21. Contest model = _context.Contests.
  22. Include(x => x.Judges).
  23. Include(y => y.Problems).
  24. Include(z => z.Participants).
  25. Include(x => x.Standings).
  26. Where(i => i.Id == Id).FirstOrDefault();
  27. List<Submission> submissions = _context.Submissions.Include(c => c.Participant).Where(c => c.Contest.Id == Id && !c.Participant.Equals(null)).ToList();
  28. model.Submissions = submissions;
  29. //DbSet<Standing> collection = _context.GetObjectQuery(Standings);
  30. //IEnumerable<>
  31.  
  32. IQueryable<Standing> collection = _context.Standings.AsQueryable();
  33. ViewBag.NotifierEntity = DbContextExtensions.GetNotifierEntity<Standing>(_context, collection).ToJson();
  34. return View(model);
  35. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,7): error CS1525: Unexpected symbol `ActionResult', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty