public void TranslateTeacherEligibilityToTeacherEligibilityBDO(TeacherEligibility te, TeacherEligibilityBDO tebdo) { tebdo.DateOfExam = te.DateOfExam; tebdo.Eligibility = te.Eligibility; tebdo.EligibilityId = te.EligibilityId; tebdo.IssueDate = te.IssueDate; tebdo.LicenseNumber = te.LicenseNumber; tebdo.PlaceOfExam = te.PlaceOfExam; tebdo.Rating = te.Rating; tebdo.TeacherId = te.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); }