public void TranslateTeacherEligibilityBDOToTeacherEligibilityDTO(TeacherEligibilityBDO tebdo, TeacherEligibility te) { te.Eligibility = tebdo.Eligibility; te.EligibilityId = tebdo.EligibilityId; te.IssueDate = tebdo.IssueDate; te.LicenseNumber = tebdo.LicenseNumber; te.PlaceOfExam = tebdo.PlaceOfExam; te.Rating = tebdo.Rating; te.TeacherId = tebdo.TeacherId; }
public List<TeacherEligibility> ToEligibilityDTO(List<TeacherEligibilityBDO> te) { List<TeacherEligibility> teList = new List<TeacherEligibility>(); foreach (TeacherEligibilityBDO t in te) { TeacherEligibility tedo = new TeacherEligibility(); TranslateTeacherEligibilityBDOToTeacherEligibilityDTO(t, tedo); teList.Add(tedo); } return teList; }