public static DM.Problem SetSubmitters(this DM.Problem problem, IEnumerable <DM.Student> submitters) { problem.Submitters = submitters.Select(s => new DM.ProblemStudent() { Problem = problem, Student = s }).ToList(); return(problem); }
public static DM.Problem SetId(this DM.Problem problem, string id) { problem.Id = id; return(problem); }
public static DM.Problem SetSubmissions(this DM.Problem problem, IEnumerable <DM.Submission> submissions) { problem.Submissions = submissions.ToList(); return(problem); }
public static DM.Problem SetContest(this DM.Problem problem, DM.Contest contest) { problem.Contest = contest; return(problem); }
public static DM.Submission SetProblem(this DM.Submission submission, DM.Problem problem) { submission.Problem = problem; return(submission); }
public static DM.Problem SetName(this DM.Problem problem, string name) { problem.Name = name; return(problem); }
public static DM.Problem SetAlias(this DM.Problem problem, string alias) { problem.Alias = alias; return(problem); }