public virtual ApiLessonXTeacherResponseModel MapBOToModel(
            BOLessonXTeacher boLessonXTeacher)
        {
            var model = new ApiLessonXTeacherResponseModel();

            model.SetProperties(boLessonXTeacher.Id, boLessonXTeacher.LessonId, boLessonXTeacher.StudentId);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOLessonXTeacher MapEFToBO(
            LessonXTeacher ef)
        {
            var bo = new BOLessonXTeacher();

            bo.SetProperties(
                ef.Id,
                ef.LessonId,
                ef.StudentId);
            return(bo);
        }
Exemplo n.º 3
0
        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);
        }