public static AssessmentInformationForm FromAssessmentInfo(AssessmentInformation assessmentInfo) { AssessmentInformationForm aif = new AssessmentInformationForm(); aif.AssessmentName = assessmentInfo.AssessmentName; aif.Author = assessmentInfo.Author; aif.AssessmentWeighting = assessmentInfo.AssessmentWeighting; return(aif); }
public static void PopulateAssessmentInformation(AssessmentInformation assessmentInfo, AssessmentInformationForm aif) { assessmentInfo.AssessmentName = aif.AssessmentName; assessmentInfo.Author = aif.Author; assessmentInfo.AssessmentWeighting = (int)aif.AssessmentWeighting; }