public virtual ApiLessonXTeacherResponseModel MapBOToModel( BOLessonXTeacher boLessonXTeacher) { var model = new ApiLessonXTeacherResponseModel(); model.SetProperties(boLessonXTeacher.Id, boLessonXTeacher.LessonId, boLessonXTeacher.StudentId); return(model); }
public virtual BOLessonXTeacher MapEFToBO( LessonXTeacher ef) { var bo = new BOLessonXTeacher(); bo.SetProperties( ef.Id, ef.LessonId, ef.StudentId); return(bo); }
public virtual LessonXTeacher MapBOToEF( BOLessonXTeacher bo) { LessonXTeacher efLessonXTeacher = new LessonXTeacher(); efLessonXTeacher.SetProperties( bo.Id, bo.LessonId, bo.StudentId); return(efLessonXTeacher); }
public virtual BOLessonXTeacher MapModelToBO( int id, ApiLessonXTeacherRequestModel model ) { BOLessonXTeacher boLessonXTeacher = new BOLessonXTeacher(); boLessonXTeacher.SetProperties( id, model.LessonId, model.StudentId); return(boLessonXTeacher); }