public virtual ApiLessonStatusResponseModel MapBOToModel(
            BOLessonStatus boLessonStatus)
        {
            var model = new ApiLessonStatusResponseModel();

            model.SetProperties(boLessonStatus.Id, boLessonStatus.Name, boLessonStatus.StudioId);

            return(model);
        }
示例#2
0
        public virtual BOLessonStatus MapEFToBO(
            LessonStatus ef)
        {
            var bo = new BOLessonStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name,
                ef.StudioId);
            return(bo);
        }
示例#3
0
        public virtual LessonStatus MapBOToEF(
            BOLessonStatus bo)
        {
            LessonStatus efLessonStatus = new LessonStatus();

            efLessonStatus.SetProperties(
                bo.Id,
                bo.Name,
                bo.StudioId);
            return(efLessonStatus);
        }
        public virtual BOLessonStatus MapModelToBO(
            int id,
            ApiLessonStatusRequestModel model
            )
        {
            BOLessonStatus boLessonStatus = new BOLessonStatus();

            boLessonStatus.SetProperties(
                id,
                model.Name,
                model.StudioId);
            return(boLessonStatus);
        }