public Assignment GetAssignmentById(int assignmentId, bool includeServerFiles) { Assignment result = _dataAccess.GetAssignmentById(assignmentId); if (result != null) { // TODO Fill the object with additional data from the XML-file if (!string.IsNullOrEmpty(result.Path)) { result = FacadeHelpers.FillAssignmentDetailsFromXml(result, _fileSystem, includeServerFiles); } } return(result); }
public TournamentAssignment GetTournamentAssignmentById(int id, bool includeServerFiles) { TournamentAssignment result = _dataAccess.GetTournamentAssignmentById(id); if (result != null) { // TODO Fill the object with additional data from the XML-file if (!string.IsNullOrEmpty(result.Assignment.Path)) { result.Assignment = FacadeHelpers.FillAssignmentDetailsFromXml(result.Assignment, _fileSystem, includeServerFiles); } //result.Assignment.AssignmentFiles //result.Assignment.Author //result.Assignment.Category //result.Assignment.Difficulty = //result.Assignment.ClassNameToImplement = //result.Assignment.InterfaceNameToImplement = //result.Assignment.Version = } return(result); }