public virtual BOLesson MapEFToBO(
            Lesson ef)
        {
            var bo = new BOLesson();

            bo.SetProperties(
                ef.Id,
                ef.ActualEndDate,
                ef.ActualStartDate,
                ef.BillAmount,
                ef.LessonStatusId,
                ef.ScheduledEndDate,
                ef.ScheduledStartDate,
                ef.StudentNotes,
                ef.StudioId,
                ef.TeacherNotes);
            return(bo);
        }
Example #2
0
        public virtual BOLesson MapModelToBO(
            int id,
            ApiLessonRequestModel model
            )
        {
            BOLesson boLesson = new BOLesson();

            boLesson.SetProperties(
                id,
                model.ActualEndDate,
                model.ActualStartDate,
                model.BillAmount,
                model.LessonStatusId,
                model.ScheduledEndDate,
                model.ScheduledStartDate,
                model.StudentNotes,
                model.StudioId,
                model.TeacherNotes);
            return(boLesson);
        }